diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-11-25 22:47:06 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-11-25 22:47:06 +0200 |
commit | 0dad2567434768c5a3d276678e5222e16526dc47 (patch) | |
tree | 44cefc95582db7e8c763134aa636bb38af4ac1a9 /include/UserSettingsPage.h | |
parent | 54cf3418bc323b96b78e944c16f34082d5c2ef89 (diff) |
Reload theme without restart (#137)
Diffstat (limited to 'include/UserSettingsPage.h')
-rw-r--r-- | include/UserSettingsPage.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/UserSettingsPage.h b/include/UserSettingsPage.h index 9e47254f..99a149c6 100644 --- a/include/UserSettingsPage.h +++ b/include/UserSettingsPage.h @@ -36,8 +36,9 @@ public: void save(); void load(); - void setTheme(QString theme) { theme_ = theme; } - void setTray(bool state) { isTrayEnabled_ = state; } + void applyTheme(); + void setTheme(QString theme); + void setTray(bool state); QString theme() const { return !theme_.isEmpty() ? theme_ : "light"; } bool isTrayEnabled() const { return isTrayEnabled_; } |