NOISSUE add hack for system themes. Maybe it works?

This commit is contained in:
Petr Mrázek
2017-01-15 22:56:03 +01:00
parent 71584fb8cc
commit 944ff256b2
10 changed files with 71 additions and 3 deletions

View File

@ -21,6 +21,7 @@ SystemTheme::SystemTheme()
}
// fall back to fusion if we can't find the current theme.
systemTheme = "Fusion";
qWarning() << "System theme not found, defaulted to Fusion";
}
QString SystemTheme::id()
@ -57,3 +58,18 @@ QColor SystemTheme::fadeColor()
{
return QColor(128,128,128);
}
bool SystemTheme::hasStyleSheet()
{
return false;
}
bool SystemTheme::hasColorScheme()
{
// FIXME: horrible hack to work around Qt's sketchy theming APIs
#if defined(Q_OS_LINUX)
return true;
#else
return false;
#endif
}