summaryrefslogtreecommitdiffstats
path: root/application/themes/SystemTheme.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-10-21 09:07:26 +0200
committerPetr Mrázek <peterix@gmail.com>2016-10-21 09:07:26 +0200
commit872cfe036d9472739939ad401dbe9511193d62ca (patch)
tree2d8356848c4955b09d66d6fc96924cc4da85ccb9 /application/themes/SystemTheme.cpp
parentf07496ac6d42986266f3bff5093fa0009521ecd5 (diff)
downloadMultiMC-872cfe036d9472739939ad401dbe9511193d62ca.tar
MultiMC-872cfe036d9472739939ad401dbe9511193d62ca.tar.gz
MultiMC-872cfe036d9472739939ad401dbe9511193d62ca.tar.lz
MultiMC-872cfe036d9472739939ad401dbe9511193d62ca.tar.xz
MultiMC-872cfe036d9472739939ad401dbe9511193d62ca.zip
GH-903 simple theme switching and dark theme
Diffstat (limited to 'application/themes/SystemTheme.cpp')
-rw-r--r--application/themes/SystemTheme.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/application/themes/SystemTheme.cpp b/application/themes/SystemTheme.cpp
new file mode 100644
index 00000000..6ced6843
--- /dev/null
+++ b/application/themes/SystemTheme.cpp
@@ -0,0 +1,28 @@
+#include "SystemTheme.h"
+#include <QApplication>
+#include <QStyle>
+
+SystemTheme::SystemTheme()
+{
+ systemPalette = QApplication::style()->standardPalette();
+}
+
+QString SystemTheme::id()
+{
+ return "system";
+}
+
+QString SystemTheme::name()
+{
+ return QObject::tr("System");
+}
+
+QPalette SystemTheme::colorScheme()
+{
+ return systemPalette;
+}
+
+QString SystemTheme::appStyleSheet()
+{
+ return QString();
+}