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

Method new

crates/opencode-tui/src/components/logo.rs:97–103  ·  view source on GitHub ↗
(text_color: Color, text_muted_color: Color, bg_color: Color)

Source from the content-addressed store, hash-verified

95
96impl Logo {
97 pub fn new(text_color: Color, text_muted_color: Color, bg_color: Color) -> Self {
98 Self {
99 primary_color: text_color,
100 muted_color: text_muted_color,
101 background_color: bg_color,
102 }
103 }
104
105 pub fn render(&self, frame: &mut Frame, area: Rect) {
106 let mut lines = Vec::new();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected