mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
style(tui/history): tint write-mode badge
This commit is contained in:
@@ -432,7 +432,14 @@ impl AgentRunCell {
|
||||
|
||||
if let Some(label) = write_label {
|
||||
if available >= string_width(label.as_str()) {
|
||||
segments.push(CardSegment::new(label, secondary_text_style(style)));
|
||||
let label_style = if label.contains("read only") {
|
||||
Style::default().fg(colors::success())
|
||||
} else if label.contains("write") {
|
||||
Style::default().fg(colors::warning())
|
||||
} else {
|
||||
secondary_text_style(style)
|
||||
};
|
||||
segments.push(CardSegment::new(label, label_style));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user