summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 14:51:32 -0300
committerGabriel Schneider <[email protected]>2026-11-05 15:29:09 -0300
commite20b3ab1db83298a93030faaccf41298f44452a5 (patch)
treec607fb067270be02690e2b0fef4ae5b79e9bd11e /src/config.zig
parent3205f21d9b5f222f7228aecda36d9d2f3a7742e4 (diff)
downloadpardes-e20b3ab1db83298a93030faaccf41298f44452a5.tar.gz
pardes-e20b3ab1db83298a93030faaccf41298f44452a5.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig19
1 files changed, 10 insertions, 9 deletions
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,
};