summaryrefslogtreecommitdiffstats
path: root/application/themes/SystemTheme.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-01-15 22:56:03 +0100
committerPetr Mrázek <peterix@gmail.com>2017-01-15 22:56:03 +0100
commit944ff256b2d9e271632efacd6e8dd1ea542e869f (patch)
treeaf7fc0041d8cc28d86577c9ffa6fc438a21b9a0b /application/themes/SystemTheme.cpp
parent71584fb8ccda914997f11044e819470d93cc3561 (diff)
downloadMultiMC-944ff256b2d9e271632efacd6e8dd1ea542e869f.tar
MultiMC-944ff256b2d9e271632efacd6e8dd1ea542e869f.tar.gz
MultiMC-944ff256b2d9e271632efacd6e8dd1ea542e869f.tar.lz
MultiMC-944ff256b2d9e271632efacd6e8dd1ea542e869f.tar.xz
MultiMC-944ff256b2d9e271632efacd6e8dd1ea542e869f.zip
NOISSUE add hack for system themes. Maybe it works?
Diffstat (limited to 'application/themes/SystemTheme.cpp')
-rw-r--r--application/themes/SystemTheme.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/application/themes/SystemTheme.cpp b/application/themes/SystemTheme.cpp
index f7a68061..1e0146f7 100644
--- a/application/themes/SystemTheme.cpp
+++ b/application/themes/SystemTheme.cpp
@@ -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
+}