diff options
| author | t <t@tjp.lol> | 2026-07-01 13:08:42 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-07-01 13:10:30 -0600 |
| commit | f8c67fe9f10e734dce91241bb5f19323ac6708d8 (patch) | |
| tree | 2e557626c085d0605b74783127c5307cec1cb0b0 /src/tui_theme.zig | |
| parent | 5e76e4aa90e70245404c10085e809880635572a0 (diff) | |
Refine TUI status and tool block styling
Diffstat (limited to 'src/tui_theme.zig')
| -rw-r--r-- | src/tui_theme.zig | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/tui_theme.zig b/src/tui_theme.zig index 038deb5..db0ee25 100644 --- a/src/tui_theme.zig +++ b/src/tui_theme.zig @@ -37,6 +37,18 @@ pub const StyleName = enum { tool, /// Footer / chrome line. footer, + /// Neutral tool-body text shown inside tool blocks. + tool_text, + /// Pending tool placeholder / secondary chrome. + tool_pending, + /// Success accent for tool status / glyphs. + tool_success, + /// Error accent for tool status / glyphs. + tool_error, + /// Compaction-summary accent/header. + compaction_header, + /// Thinking-block accent/header. + thinking_header, /// The virtual cursor: reverse video block. cursor, /// Error / retry text. @@ -127,7 +139,13 @@ fn styleFor(name: StyleName) Style { .assistant => .{ .open_seq = "", .is_plain = true }, .user => .{ .open_seq = "\x1b[39m" }, .tool => .{ .open_seq = "\x1b[36m" }, - .footer => .{ .open_seq = "\x1b[2m" }, + .footer => .{ .open_seq = "\x1b[2m\x1b[38;2;120;130;150m" }, + .tool_text => .{ .open_seq = "\x1b[38;2;210;214;220m" }, + .tool_pending => .{ .open_seq = "\x1b[38;2;150;160;185m" }, + .tool_success => .{ .open_seq = "\x1b[38;2;110;215;140m" }, + .tool_error => .{ .open_seq = "\x1b[38;2;255;140;140m" }, + .compaction_header => .{ .open_seq = "\x1b[38;2;255;210;120m" }, + .thinking_header => .{ .open_seq = "\x1b[38;2;180;150;255m" }, // Reverse video — the virtual cursor block. .cursor => .{ .open_seq = "\x1b[7m" }, .err => .{ .open_seq = "\x1b[31m" }, |
