From f0ecf6eee6d6c9270f2e21f4f57af3f91044bd6c Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 25 Nov 2017 18:19:58 +0200 Subject: Add dark theme --- include/UserSettingsPage.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/UserSettingsPage.h b/include/UserSettingsPage.h index 3db15eef..9e47254f 100644 --- a/include/UserSettingsPage.h +++ b/include/UserSettingsPage.h @@ -39,7 +39,7 @@ public: void setTheme(QString theme) { theme_ = theme; } void setTray(bool state) { isTrayEnabled_ = state; } - QString theme() const { return !theme_.isEmpty() ? theme_ : "default"; } + QString theme() const { return !theme_.isEmpty() ? theme_ : "light"; } bool isTrayEnabled() const { return isTrayEnabled_; } private: @@ -72,6 +72,8 @@ signals: void trayOptionChanged(bool value); private: + void restoreThemeCombo() const; + // Layouts QVBoxLayout *topLayout_; QVBoxLayout *mainLayout_; -- cgit 1.5.1