diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 14:51:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 15:29:09 -0300 |
| commit | e20b3ab1db83298a93030faaccf41298f44452a5 (patch) | |
| tree | c607fb067270be02690e2b0fef4ae5b79e9bd11e /src/builtins.zig | |
| parent | 3205f21d9b5f222f7228aecda36d9d2f3a7742e4 (diff) | |
| download | pardes-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/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/builtins.zig b/src/builtins.zig index c1d7c50b..de69c545 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -24,8 +24,8 @@ pub const frontend: config.Runtime.Capabilities = .{ // Only the SDL shell shapes with HarfBuzz and honours the setting. macOS // draws CoreText ligatures of its own, but nothing there reads it yet. .ligatures = pardes.platform == .gui, - // Soft shadows are the SDL shell's decor. - .lift = pardes.platform == .gui, + // The grip's width, the cursor's blink and the Pet are the SDL window's. + .pixels = pardes.platform == .gui, }; /// The terminal's build and the window's (docs/next-daemon.md, "Phase 6: @@ -33,8 +33,8 @@ pub const frontend: config.Runtime.Capabilities = .{ /// its own frontend does (`viewCapabilities`), so a terminal's replica of a /// window's session steps as the window's own does, and back. pub const desktop = pardes.platform == .tui or pardes.platform == .gui; -const window_capabilities: config.Runtime.Capabilities = .{ .font_picker = true, .tagline_font_size = true, .window_opacity = true, .window_blur = false, .ligatures = true, .lift = true }; -const terminal_capabilities: config.Runtime.Capabilities = .{ .font_picker = false, .tagline_font_size = false, .window_opacity = false, .window_blur = false, .ligatures = false, .lift = false }; +const window_capabilities: config.Runtime.Capabilities = .{ .font_picker = true, .tagline_font_size = true, .window_opacity = true, .window_blur = false, .ligatures = true, .pixels = true }; +const terminal_capabilities: config.Runtime.Capabilities = .{ .font_picker = false, .tagline_font_size = false, .window_opacity = false, .window_blur = false, .ligatures = false, .pixels = false }; /// The words this build has: a desktop build's are the window's. pub const capabilities: config.Runtime.Capabilities = if (desktop) window_capabilities else frontend; |
