about summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorRicky Kresslein <rk@lakoliu.com>2022-03-22 11:24:25 +0100
committerRicky Kresslein <rk@lakoliu.com>2022-03-22 11:24:25 +0100
commit3312d180c0743494702f52cb715f2d86772db9a4 (patch)
treebcda2ac6d3b68531d3799b4c4c485b799c1beb9c /src/ui
parentf767543f6f22404649429ecd3d16b6adcc7f7c14 (diff)
downloadFurtherance-3312d180c0743494702f52cb715f2d86772db9a4.tar.zst
- Dark Mode off by default
- Dark mode toggle switches immediately
Diffstat (limited to 'src/ui')
-rwxr-xr-xsrc/ui/preferences_window.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/preferences_window.rs b/src/ui/preferences_window.rs
index 12e8c30..f871e31 100755
--- a/src/ui/preferences_window.rs
+++ b/src/ui/preferences_window.rs
@@ -22,6 +22,7 @@ use gtk::CompositeTemplate;
 
 use crate::settings_manager;
 use crate::ui::FurtheranceWindow;
+use crate::FurtheranceApplication;
 
 mod imp {
     use super::*;
@@ -156,6 +157,11 @@ impl FurPreferencesWindow {
             "active"
         );
 
+        imp.dark_theme_switch.connect_active_notify(move |_|{
+            let app = FurtheranceApplication::default();
+            app.update_light_dark();
+        });
+
         imp.limit_tasks_expander.connect_enable_expansion_notify(move |_|{
             let window = FurtheranceWindow::default();
             window.reset_history_box();