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

Method apply_theme_selection

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

Source from the content-addressed store, hash-verified

1720 }
1721
1722 fn apply_theme_selection(&mut self, theme: &ThemeItem) {
1723 let (base, appearance, scheme) = self.current_base_theme();
1724 self.config.ui.theme_id = theme.id.clone();
1725
1726 match self.config.save() {
1727 Ok(()) => {
1728 self.status = Some(format!("Theme set to: {}", theme.id));
1729 }
1730 Err(e) => {
1731 self.status = Some(format!("Failed to save config: {}", e));
1732 }
1733 }
1734
1735 self.theme = self.resolve_theme_by_id(base, appearance, scheme, &theme.id);
1736 self.theme_preview_original = None;
1737 }
1738
1739 fn show_skill_selector(&mut self) {
1740 self.push_current_popup_to_stack();

Callers 1

handle_keyMethod · 0.45

Calls 4

current_base_themeMethod · 0.80
cloneMethod · 0.45
saveMethod · 0.45
resolve_theme_by_idMethod · 0.45

Tested by

no test coverage detected