mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
Use macOS theme on all platforms by default, instead of legacy theme
This commit is contained in:
parent
d06d691a1a
commit
478c72f69c
1 changed files with 4 additions and 9 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue