summaryrefslogtreecommitdiff
path: root/src/surface.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/surface.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/surface.zig')
-rw-r--r--src/surface.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/surface.zig b/src/surface.zig
index 7256ecc1..26783df4 100644
--- a/src/surface.zig
+++ b/src/surface.zig
@@ -448,8 +448,10 @@ pub const Chrome = struct {
decor_title_px: u8 = 2,
name_ink: [3]u8 = .{ 0, 0, 0 },
active_name_ink: [3]u8 = .{ 0, 0, 0 },
- /// G9: a pixel shell glows round the body's selection (SelectionGlow).
- selection_glow: u8 = 0,
+ /// A pixel shell's glows: bit 0 round the body's selection (G9,
+ /// SelectionGlow), bit 1 under the word a look-hover would open (G11,
+ /// HoverGlow).
+ glows: u8 = 0,
};
/// The canonical interface: what a frame of pardes IS. The tty shell writes