From 6eaa81710fee8ee2191a0b967b069bb01952be2e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 5 Aug 2026 15:05:34 -0300 Subject: theme the selection colors --- src/themes/helix.zig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/themes/helix.zig') diff --git a/src/themes/helix.zig b/src/themes/helix.zig index 26c156ff..3c2934f7 100644 --- a/src/themes/helix.zig +++ b/src/themes/helix.zig @@ -18,6 +18,13 @@ //! #121212 for the bars, 238 #444444 for the thumb, 235 #262626 for an //! unfocused box. No hue anywhere outside the syntax colors. //! +//! The selection pair is the one thing not in that capture, because the capture +//! has nothing selected in it: it is pardes.toml's own +//! `"ui.selection" = { bg = "#80a0ff" }`, verbatim. helix names no foreground +//! there — it tints the cell and lets the syntax colour ride, which at #bdbdbd +//! on #80a0ff is not something to copy — so the ink is the page's own +//! near-black, the other end of the theme's own two extremes. +//! //! Shape: bg/fg are explicit rather than null, because "just really dark" must //! not depend on whose terminal it lands in — but `palette` stays null so a //! shell's ANSI indices still resolve to the host's own 16 colors. helix does @@ -32,6 +39,8 @@ pub const theme = .{ .name = "helix", .bg = .{ 0x08, 0x08, 0x08 }, .fg = .{ 0xbd, 0xbd, 0xbd }, + .sel_bg = .{ 0x80, 0xa0, 0xff }, + .sel_fg = .{ 0x08, 0x08, 0x08 }, .tag_bg = .{ 0x12, 0x12, 0x12 }, .tag_fg = .{ 0x94, 0x94, 0x94 }, .box = .{ 0x62, 0x62, 0x62 }, -- cgit v1.3