summaryrefslogtreecommitdiff
path: root/src/draw.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 07:31:35 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit87ad46cb7e7410c53419c20cef7df53ed4c15f60 (patch)
treeddc88864c5a741426d1e7d89097dd56b4586e883 /src/draw.zig
parent411d0b6059192b75853e220e1242b694ae461a3e (diff)
downloadpardes-87ad46cb7e7410c53419c20cef7df53ed4c15f60.tar.gz
pardes-87ad46cb7e7410c53419c20cef7df53ed4c15f60.zip
G11: HoverGlow, a soft underline of light under a look-hover's word
HoverGlow on|off (off, a pixel shell's; Chrome.glows bit 1, SelectionGlow bit 0 now that there are two): under the word a look-hover would open (its cells in the affordance's tint) a strip three logical pixels tall along its foot, blurred by one, in the theme's accent, at most 22% and under the text's contrast floor, fading in over 80 ms; kept to the bodies and split round a cursor. glowBlocks serves G9 and G11. The strip is cast from a row away so addSoft's caster cut-out misses it. Tests: the glow comes up by 90 ms and never falls on the cursor's cell. Gates as G10 (a loaded machine shifted the GUI goldens a scene once; a rerun matched 01-08). Feel review: .scratch/render/hover/.
Diffstat (limited to 'src/draw.zig')
-rw-r--r--src/draw.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/draw.zig b/src/draw.zig
index 6c0cc077..5e40f0fa 100644
--- a/src/draw.zig
+++ b/src/draw.zig
@@ -472,7 +472,7 @@ pub fn render(p: *Pardes, arena: std.mem.Allocator) !*Surface {
.rail_px = @intCast(@min(255, @as(u32, p.theme().rail_px orelse 12) * p.settings.grip_width / 100)),
.name_ink = chrome.tag_name_fg,
.active_name_ink = if (p.settings.focus_tint) chrome.tag_active_name_fg else chrome.tag_name_fg,
- .selection_glow = @intFromBool(p.settings.selection_glow),
+ .glows = @as(u8, @intFromBool(p.settings.selection_glow)) | @as(u8, @intFromBool(p.settings.hover_glow)) << 1,
};
if (p.theme().decor) |decor| {
s.chrome.decor_dots = decor.page_dots;