summaryrefslogtreecommitdiff
path: root/src/surface.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 07:17:07 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit99c088e277e7d79d7b4341d3f546c02e7254e107 (patch)
treefcfa295e3d236ec6bd676b5ffcf57401e2dcf732 /src/surface.zig
parentdd586f1d8937f67e95504da167216d5413f05262 (diff)
downloadpardes-99c088e277e7d79d7b4341d3f546c02e7254e107.tar.gz
pardes-99c088e277e7d79d7b4341d3f546c02e7254e107.zip
G9: SelectionGlow, a soft halo round the body's selection
SelectionGlow on|off (off; a pixel shell's, Chrome.selection_glow): each block of selected rows in a pane body casts Lift's soft kind in the selection's own colour, the block its caster (never touched) and a cursor beside it joined to the caster; clipped to the bodies (never a tag or a grip); at most 22% (ยง8.2), less where the text round it would drop below min(its contrast, 4.5); fading in over 100 ms with an ease-out, on the core's continuous path (shell_continuous); none while panes move. Blocks come from the cells in the theme's selection colour (documented). Tests: the halo's colour, its clip to the body, nothing at its first frame and up to its cap after 100 ms, fading done. Gates as G8. Feel review: .scratch/render/selection/.
Diffstat (limited to 'src/surface.zig')
-rw-r--r--src/surface.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/surface.zig b/src/surface.zig
index 5b850a8b..7256ecc1 100644
--- a/src/surface.zig
+++ b/src/surface.zig
@@ -448,6 +448,8 @@ 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,
};
/// The canonical interface: what a frame of pardes IS. The tty shell writes