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

Method from_preset

crates/opencode-tui/src/theme/mod.rs:175–178  ·  view source on GitHub ↗
(name: &str, mode: ThemeMode)

Source from the content-addressed store, hash-verified

173 }
174
175 pub fn from_preset(name: &str, mode: ThemeMode) -> Option<Self> {
176 let theme = PRESET_THEMES.get(name)?;
177 Some(build_theme(theme, mode))
178 }
179
180 fn fallback_dark() -> Self {
181 Self {

Callers

nothing calls this directly

Calls 2

build_themeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected