summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-25 22:47:06 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-25 22:47:06 +0200
commit0dad2567434768c5a3d276678e5222e16526dc47 (patch)
tree44cefc95582db7e8c763134aa636bb38af4ac1a9 /include
parentPaint RoomList's background (#137) (diff)
downloadnheko-0dad2567434768c5a3d276678e5222e16526dc47.tar.xz
Reload theme without restart (#137)
Diffstat (limited to 'include')
-rw-r--r--include/UserSettingsPage.h5
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_; }