From 0dad2567434768c5a3d276678e5222e16526dc47 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 25 Nov 2017 22:47:06 +0200 Subject: Reload theme without restart (#137) --- include/UserSettingsPage.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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_; } -- cgit 1.5.1