fix(appearance): load theme for initial default

This commit is contained in:
Ashley Wulber 2025-04-22 11:47:40 -04:00 • committed by Michael Murphy
parent ca101c431d
commit 43ebdad303

View file

@ -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()