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

Method set_theme

src/apps/cli/src/ui/chat/scroll.rs:47–52  ·  view source on GitHub ↗
(&mut self, theme: Theme)

Source from the content-addressed store, hash-verified

45 }
46
47 pub fn set_theme(&mut self, theme: Theme) {
48 self.theme = theme.clone();
49 self.markdown_renderer = MarkdownRenderer::new(theme);
50 self.lines_cache_dirty = true;
51 self.render_cache.clear();
52 }
53
54 pub fn toggle_browse_mode(&mut self) {
55 self.browse_mode = !self.browse_mode;

Callers 3

cancel_theme_previewMethod · 0.80
apply_theme_selectionMethod · 0.80

Calls 2

cloneMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected