UI: Use theme path prefix in source tree

This commit is contained in:
derrod
2023-10-10 17:19:02 -03:00
committed by Georges Basile Stavracas Neto
parent 1906a14b90
commit a2db8876fc
+1 -4
View File
@@ -1664,11 +1664,8 @@ void SourceTree::AddGroup()
void SourceTree::UpdateNoSourcesMessage()
{
std::string darkPath;
GetDataFilePath("themes/Dark/no_sources.svg", darkPath);
QString file = !App()->IsThemeDark() ? ":res/images/no_sources.svg"
: darkPath.c_str();
: "theme:Dark/no_sources.svg";
iconNoSources.load(file);
QTextOption opt(Qt::AlignHCenter);