fix(appearance): load theme for initial default
This commit is contained in:
parent
ca101c431d
commit
43ebdad303
1 changed files with 11 additions and 3 deletions
|
|
@ -175,10 +175,18 @@ impl
|
||||||
AccentPalette,
|
AccentPalette,
|
||||||
),
|
),
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let theme = if theme_mode.is_dark {
|
let theme = if let Ok(c) = if theme_mode.is_dark {
|
||||||
Theme::dark_default()
|
Theme::dark_config()
|
||||||
} else {
|
} else {
|
||||||
Theme::light_default()
|
Theme::light_config()
|
||||||
|
} {
|
||||||
|
Theme::get_entry(&c).unwrap_or_default()
|
||||||
|
} else {
|
||||||
|
if theme_mode.is_dark {
|
||||||
|
Theme::dark_default()
|
||||||
|
} else {
|
||||||
|
Theme::light_default()
|
||||||
|
}
|
||||||
};
|
};
|
||||||
theme_builder = theme_builder
|
theme_builder = theme_builder
|
||||||
.clone()
|
.clone()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue