From e20b3ab1db83298a93030faaccf41298f44452a5 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 14:51:32 -0300 Subject: words: the core's names and notes that still told of its motion: Capabilities.lift, named for Lift and said to be its soft shadows, gates what only the SDL window draws (the grip at GripWidth, its own CursorBlink, the Pet) and is Capabilities.pixels now; nextWake, advance, the pump's wait, update's tick and the replica's and views' field notes speak of the core's deadlines and timings where they spoke of its animation (pardes.zig, views.zig, Messages.zig); animationActive keeps its name, as macOS calls it (src/macos.zig, which needs its own change on a Mac); a window test's skip for a build without the capability goes (gui.zig is the window's alone); gates: core-test and behaviour-test on tui, unit-test on gui Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/config.zig | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/config.zig') diff --git a/src/config.zig b/src/config.zig index 9eb95cfd..abc901d6 100644 --- a/src/config.zig +++ b/src/config.zig @@ -162,12 +162,12 @@ pub const leader_path = paths: { if (builtins.capabilities.window_opacity) table.set(.WindowOpacity, null); if (builtins.capabilities.window_blur) table.set(.WindowBlur, null); if (builtins.capabilities.ligatures) table.set(.Ligatures, null); - if (builtins.capabilities.lift) table.set(.CursorBlink, null); + if (builtins.capabilities.pixels) table.set(.CursorBlink, null); table.set(.JumpTrail, null); table.set(.ProgramEsc, null); - if (builtins.capabilities.lift) table.set(.GripWidth, null); + if (builtins.capabilities.pixels) table.set(.GripWidth, null); table.set(.InactiveDim, null); - if (builtins.capabilities.lift) table.set(.Pet, null); + if (builtins.capabilities.pixels) table.set(.Pet, null); if (builtins.TreeContext.enabled) table.set(.TreeContext, null); table.set(.ThemeFile, null); table.set(.DumpThemes, null); @@ -854,8 +854,9 @@ pub const Runtime = struct { window_blur: bool = false, /// The shell shapes text, so it can draw ligatures and stop drawing them. ligatures: bool = false, - /// The shell draws soft shadows under what stands off the page. - lift: bool = false, + /// The shell draws its own pixels (the SDL window): the grip at + /// GripWidth, its own cursor blink, the Pet. + pixels: bool = false, }; pub const Capability = std.meta.FieldEnum(Capabilities); @@ -903,13 +904,13 @@ pub const Runtime = struct { .font, .tagline_size => .font_picker, .window_opacity => .window_opacity, .window_blur => .window_blur, - .grip_width => .lift, + .grip_width => .pixels, .toggle => |field| switch (field) { .ligatures => .ligatures, - .cursor_blink => .lift, + .cursor_blink => .pixels, else => null, }, - .choice => |which| if (which == .pet) .lift else null, + .choice => |which| if (which == .pet) .pixels else null, else => null, }; } @@ -1349,7 +1350,7 @@ pub const Runtime = struct { .window_opacity = true, .window_blur = true, .ligatures = true, - .lift = true, + .pixels = true, }, .state = &state, }; -- cgit v1.3