From 872cfe036d9472739939ad401dbe9511193d62ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 21 Oct 2016 09:07:26 +0200 Subject: GH-903 simple theme switching and dark theme --- application/themes/SystemTheme.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 application/themes/SystemTheme.cpp (limited to 'application/themes/SystemTheme.cpp') 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 +#include + +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(); +} -- cgit v1.2.3