From f8c6d45755acb5abf9ac68931268b7945da0fae0 Mon Sep 17 00:00:00 2001 From: t Date: Mon, 15 Jun 2026 22:11:53 -0600 Subject: display fixes: markdown rendering, tool-specific components --- src/tui_theme.zig | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/tui_theme.zig') 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. -- cgit v1.3