diff options
Diffstat (limited to 'src/tui_theme.zig')
| -rw-r--r-- | src/tui_theme.zig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tui_theme.zig b/src/tui_theme.zig index 9e7e565..038deb5 100644 --- a/src/tui_theme.zig +++ b/src/tui_theme.zig @@ -43,6 +43,14 @@ pub const StyleName = enum { err, /// Welcome banner accent (session start chrome). welcome, + /// Edit-diff `-` line prefix (slightly lighter red than `.err` + /// so the surrounding body text remains readable when the + /// prefix is the only colored byte on the line). + err_diff, + /// Edit-diff `+` line prefix (slightly lighter green than + /// `.tool_success_bg`; this is a FOREGROUND color used to + /// color the leading `+` byte in a diff, not a background). + add_diff, /// Thinking block body (dimmed, distinct entry so the taxonomy is honest /// even though it currently resolves to the same dim escape). thinking, @@ -123,6 +131,11 @@ fn styleFor(name: StyleName) Style { // Reverse video — the virtual cursor block. .cursor => .{ .open_seq = "\x1b[7m" }, .err => .{ .open_seq = "\x1b[31m" }, + // Diff -prefix: lighter red so the surrounding body text + // stays readable; only the leading byte is colored. + .err_diff => .{ .open_seq = "\x1b[38;2;240;100;100m" }, + // Diff +prefix: green, slightly muted. + .add_diff => .{ .open_seq = "\x1b[38;2;100;200;120m" }, // Welcome banner: cyan accent, matching the tool accent family. .welcome => .{ .open_seq = "\x1b[36m" }, // Thinking body: dimmed, like status chrome. |
