From f316b46caea6ecf947989114c37af8288b37dbf5 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 7 Nov 2026 00:27:21 -0300 Subject: themes: a theme may colour the tagline (the workspace row) on its own, tagline_bg and tagline_fg, an editor's status bar, resolved to the tag's colours without them (ChromeTheme); dark_plus takes VS Code's statusBar.background #007acc with white text, cited; the chrome floors test holds the pair to 4.5:1 and the default to the tag's; the theme and themesel snapshots move by that row Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/draw.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/draw.zig') diff --git a/src/draw.zig b/src/draw.zig index b17e2458..c45f7b15 100644 --- a/src/draw.zig +++ b/src/draw.zig @@ -478,11 +478,11 @@ fn paintHeaders(p: *Pardes, s: *Surface) !void { const layer = &s.tag_layers[MAX_PANES + MAX_COLS]; var viewport = region.rect; const inset = @min(TAG_TEXT_INSET, viewport.w); - s.fill(viewport.x, viewport.y, inset, viewport.h, .{ .bg = .{ .rgb = chrome.tag_bg }, .fg = .{ .rgb = chrome.tag_fg }, .font_role = .tagline }); + s.fill(viewport.x, viewport.y, inset, viewport.h, .{ .bg = .{ .rgb = chrome.tagline_bg }, .fg = .{ .rgb = chrome.tagline_fg }, .font_role = .tagline }); viewport.x += inset; viewport.w -= inset; - try renderHeaderLayer(p, layer, .workspace, 0, viewport, tagline.topbar(p), top, chrome.tag_bg, chrome.tag_fg); - joinHeaderRows(s, layer, chrome.tag_fg); + try renderHeaderLayer(p, layer, .workspace, 0, viewport, tagline.topbar(p), top, chrome.tagline_bg, chrome.tagline_fg); + joinHeaderRows(s, layer, chrome.tagline_fg); } const column_rows = layout.columnBarHeight(p); if (column_rows > 0) for (0..p.view().ncol) |c| { @@ -1351,4 +1351,3 @@ test "a body with context rows is painted once, and the grid's rows are what a p // The layer's own rows run past the grid's. try std.testing.expect(layer.rows > body.rect.h); } - -- cgit v1.3