MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / agent_color

Method agent_color

crates/opencode-tui/src/theme/mod.rs:143–145  ·  view source on GitHub ↗
(&self, index: usize)

Source from the content-addressed store, hash-verified

141 }
142
143 pub fn agent_color(&self, index: usize) -> Color {
144 self.agent_colors[index % self.agent_colors.len()]
145 }
146
147 pub fn by_name(name: &str) -> Option<Self> {
148 let normalized = name.trim();

Callers 3

assistant_marker_colorFunction · 0.80
refresh_agent_dialogMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected