summaryrefslogtreecommitdiff
path: root/src/surface.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 08:37:12 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit52f9c1423bc4e58079b008e763b5485ae49911f7 (patch)
tree92d58a7713796f3dbe87daa492ea0306ee9fd674 /src/surface.zig
parent0a2694e935fa8a79f1a399f2d2cbc643f8c3734e (diff)
downloadpardes-52f9c1423bc4e58079b008e763b5485ae49911f7.tar.gz
pardes-52f9c1423bc4e58079b008e763b5485ae49911f7.zip
G14: Afterglow, changed text glows a moment and fades
Afterglow on|off (off, a pixel shell's; Chrome.fx bit 4): the GUI keeps the grid it last drew and when each cell changed; a body cell whose text changed glows in the theme's accent, at most 18% and under the text's contrast floor, fading with an ease-out over 250 ms, one flat rectangle a run of cells that changed together; never a tag or a grip, the cursor or a selection; a scrolled body (its first line moved) starts over rather than lighting up whole. On the continuous path while anything glows. Tests: three changed cells glow as a run of two (the cursor's left out), gone by 250 ms, a scroll lights nothing. Gates as before; goldens byte-identical. Feel review: .scratch/render/afterglow/.
Diffstat (limited to 'src/surface.zig')
-rw-r--r--src/surface.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/surface.zig b/src/surface.zig
index d1ea78b1..22a71a27 100644
--- a/src/surface.zig
+++ b/src/surface.zig
@@ -455,7 +455,8 @@ pub const Chrome = struct {
/// A pixel shell's small effects: bit 0 a glow round the body's
/// selection (G9, SelectionGlow), bit 1 one under the word a look-hover
/// would open (G11, HoverGlow), bit 2 the bodies' edge shade (G12,
- /// Occlusion), bit 3 the page pattern's parallax (G13, Parallax).
+ /// Occlusion), bit 3 the page pattern's parallax (G13, Parallax), bit 4
+ /// changed text's afterglow (G14, Afterglow).
fx: u8 = 0,
};