Use macOS theme on all platforms by default, instead of legacy theme

This commit is contained in:
Exidex 2025-02-02 15:48:01 +01:00
parent d06d691a1a
commit 478c72f69c
No known key found for this signature in database
GPG key ID: 46D8D21671EB48FA

View file

@ -185,15 +185,10 @@ impl Settings {
}
fn autodetect_theme(&self) -> UiTheme {
match OS {
"macos" => {
match dark_light::detect() {
Mode::Dark => self.themes.macos_dark_theme.clone(),
Mode::Light => self.themes.macos_light_theme.clone(),
Mode::Default => self.themes.macos_dark_theme.clone()
}
}
_ => self.themes.legacy_theme.clone()
match dark_light::detect() {
Mode::Dark => self.themes.macos_dark_theme.clone(),
Mode::Light => self.themes.macos_light_theme.clone(),
Mode::Default => self.themes.macos_dark_theme.clone()
}
}
}