diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-10-21 09:07:26 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-10-21 09:07:26 +0200 |
commit | 872cfe036d9472739939ad401dbe9511193d62ca (patch) | |
tree | 2d8356848c4955b09d66d6fc96924cc4da85ccb9 /application/themes/SystemTheme.cpp | |
parent | f07496ac6d42986266f3bff5093fa0009521ecd5 (diff) | |
download | PrismLauncher-872cfe036d9472739939ad401dbe9511193d62ca.tar.gz PrismLauncher-872cfe036d9472739939ad401dbe9511193d62ca.tar.bz2 PrismLauncher-872cfe036d9472739939ad401dbe9511193d62ca.zip |
GH-903 simple theme switching and dark theme
Diffstat (limited to 'application/themes/SystemTheme.cpp')
-rw-r--r-- | application/themes/SystemTheme.cpp | 28 |
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(); +} |