summaryrefslogtreecommitdiff
path: root/src/draw.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-07 00:27:21 -0300
committerGabriel Schneider <[email protected]>2026-11-07 00:35:46 -0300
commitf316b46caea6ecf947989114c37af8288b37dbf5 (patch)
treeb238920cceac3bca73add04e6fb75071751bf515 /src/draw.zig
parentfd2c34a10911d6c577e429bfde4433e23c8eb6c7 (diff)
downloadpardes-f316b46caea6ecf947989114c37af8288b37dbf5.tar.gz
pardes-f316b46caea6ecf947989114c37af8288b37dbf5.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/draw.zig')
-rw-r--r--src/draw.zig7
1 files changed, 3 insertions, 4 deletions
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);
}
-