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,
),
) -> Self {
let theme = if theme_mode.is_dark {
Theme::dark_default()
let theme = if let Ok(c) = if theme_mode.is_dark {
Theme::dark_config()
} 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
.clone()