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

Method get_color

crates/opencode-tui/src/components/dialogs/alert.rs:71–78  ·  view source on GitHub ↗
(&self, theme: &Theme)

Source from the content-addressed store, hash-verified

69 }
70
71 fn get_color(&self, theme: &Theme) -> ratatui::style::Color {
72 match self.alert_type {
73 AlertType::Info => theme.info,
74 AlertType::Success => theme.success,
75 AlertType::Warning => theme.warning,
76 AlertType::Error => theme.error,
77 }
78 }
79
80 fn get_icon(&self) -> &str {
81 match self.alert_type {

Callers 1

renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected