MCPcopy Create free account
hub / github.com/GCWing/BitFun / current_base_theme

Method current_base_theme

src/apps/cli/src/ui/startup.rs:1659–1672  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1657 }
1658
1659 fn current_base_theme(&self) -> (Theme, Appearance, EffectiveColorScheme) {
1660 let appearance = resolve_appearance(&self.config.ui.theme);
1661 let scheme = resolve_effective_color_scheme(&self.config.ui.color_scheme);
1662 let base_is_light = appearance.is_light();
1663 let base = match (base_is_light, scheme) {
1664 (_, EffectiveColorScheme::Monochrome) => Theme::monochrome(),
1665 (true, EffectiveColorScheme::Ansi16) => Theme::light_ansi16(),
1666 (true, EffectiveColorScheme::Truecolor) => Theme::light(),
1667 (false, EffectiveColorScheme::Ansi16) => Theme::dark_ansi16(),
1668 (false, EffectiveColorScheme::Truecolor) => Theme::dark(),
1669 };
1670
1671 (base, appearance, scheme)
1672 }
1673
1674 fn resolve_theme_by_id(
1675 &self,

Callers 2

apply_theme_selectionMethod · 0.80

Calls 3

resolve_appearanceFunction · 0.85
is_lightMethod · 0.80

Tested by

no test coverage detected