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

Method preview_theme_selection

src/apps/cli/src/ui/startup.rs:1712–1720  ·  view source on GitHub ↗
(&mut self, theme: &ThemeItem)

Source from the content-addressed store, hash-verified

1710 }
1711
1712 fn preview_theme_selection(&mut self, theme: &ThemeItem) {
1713 self.begin_theme_preview();
1714 let (base, appearance, scheme) = self.current_base_theme();
1715 self.theme = self.resolve_theme_by_id(base, appearance, scheme, &theme.id);
1716 self.status = Some(format!(
1717 "Preview theme: {} (Enter apply, Esc cancel)",
1718 theme.id
1719 ));
1720 }
1721
1722 fn apply_theme_selection(&mut self, theme: &ThemeItem) {
1723 let (base, appearance, scheme) = self.current_base_theme();

Callers 3

handle_non_key_eventMethod · 0.45
handle_keyMethod · 0.45
show_theme_selectorMethod · 0.45

Calls 3

current_base_themeMethod · 0.80
begin_theme_previewMethod · 0.45
resolve_theme_by_idMethod · 0.45

Tested by

no test coverage detected