We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cded3c commit 8edf92dCopy full SHA for 8edf92d
1 file changed
src/gui/uithememanager.cpp
@@ -56,6 +56,14 @@ namespace
56
const QColor &color = palette.color(QPalette::Active, QPalette::Base);
57
return (color.lightness() < 127);
58
}
59
+
60
+ Path resolveThemePath(const Path &themePath)
61
+ {
62
+ if (themePath.isAbsolute())
63
+ return themePath;
64
65
+ return (Path(QCoreApplication::applicationDirPath()) / themePath);
66
+ }
67
68
69
UIThemeManager *UIThemeManager::m_instance = nullptr;
@@ -100,7 +108,7 @@ UIThemeManager::UIThemeManager()
100
108
101
109
if (m_useCustomTheme)
102
110
{
103
- const Path themePath = Preferences::instance()->customUIThemePath();
111
+ const Path themePath = resolveThemePath(Preferences::instance()->customUIThemePath());
104
112
105
113
if (themePath.hasExtension(u".qbtheme"_s))
106
114
0 commit comments