MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / refresh_theme_list_dialog

Method refresh_theme_list_dialog

crates/opencode-tui/src/app/app.rs:2602–2613  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

2600 }
2601
2602 fn refresh_theme_list_dialog(&mut self) {
2603 let options = self
2604 .context
2605 .available_theme_names()
2606 .into_iter()
2607 .map(|name| ThemeOption {
2608 id: name.clone(),
2609 name: format_theme_option_label(&name),
2610 })
2611 .collect::<Vec<_>>();
2612 self.theme_list_dialog.set_options(options);
2613 }
2614
2615 fn refresh_skill_list_dialog(&mut self) -> anyhow::Result<()> {
2616 let Some(client) = self.context.get_api_client() else {

Callers 2

newMethod · 0.80

Calls 4

available_theme_namesMethod · 0.80
set_optionsMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected