Skip to content

Commit

Permalink
Fix for settings options not being set correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
R3alCl0ud committed Oct 4, 2024
1 parent 65ffeb8 commit e3472af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ pub async fn init_ui(diva_ui: &App, dark_tx: Sender<ColorScheme>) {
settings.set_active_pdmm(cfg.diva_dir.clone().into());
settings.set_b_system_theme(cfg.use_system_theme);
settings.set_b_system_scale(cfg.use_system_scaling);
settings.set_b_dark_theme(cfg.dark_mode);
settings.set_f_scale(cfg.scale);
}

Expand Down
4 changes: 2 additions & 2 deletions ui/subwindows/settings.slint
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export component SettingsWindow inherits Dialog {
in-out property <string> active-pdmm <=> active-dir.current-value;
in-out property <bool> b-system-theme;
in-out property <bool> b-system-scale;
in-out property <bool> b-dark-theme <=> dark-mode.checked;
in-out property <float> f-scale;

property <length> control-text-size: 16px;
Expand All @@ -65,7 +66,7 @@ export component SettingsWindow inherits Dialog {
system-theme := Switch {
col: 3;
height: 30px;
// checked: Palette.color-scheme == ColorScheme.dark;
checked: b-system-theme;
}
}

Expand Down Expand Up @@ -93,7 +94,6 @@ export component SettingsWindow inherits Dialog {
col: 3;
height: 30px;
checked: b-system-scale;
// checked: Palette.color-scheme == ColorScheme.dark;
}
}

Expand Down

0 comments on commit e3472af

Please sign in to comment.