summaryrefslogtreecommitdiff
path: root/src/surface.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 12:20:17 -0300
committerGabriel Schneider <[email protected]>2026-11-05 15:17:05 -0300
commitba3c654472ee0dd9fb5d39dd24063c07a44c6752 (patch)
tree8db073c4fe9018ddf648a5ec9e746c02ff1cda73 /src/surface.zig
parentecdb0996147f319a4427273bf276e1fc5bf89156 (diff)
downloadpardes-ba3c654472ee0dd9fb5d39dd24063c07a44c6752.tar.gz
pardes-ba3c654472ee0dd9fb5d39dd24063c07a44c6752.zip
effects out, the lapis decor and Parallax: a theme's ornament (colors.Decor and Theme.decor: the page's dot grid, the scroll track's checker, the tag plaques with their frames, shadows and the focused one's stripes, the file name's shadow) goes with the Chrome's decor_* fields, name_ink and fx, the window's cell decor (CellDecor, the cells a plaque showed through and the blended pipeline they needed, the plaques drawn under the cells, addPattern, addDecorExcept, plaqueBox), ui.frag's dots and shadow, decor.frag's checker (flat fills alone now), the cell instance's second effect word (76 bytes an instance) and the Parallax word and setting; lapis keeps its colours, and lapis_plain, lapis on flat grounds, is lapis now and goes (theme.snap's lapis-plain frames and themesel's row of it, the window monkey's theme list, the site gallery's entry and shot)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/surface.zig')
-rw-r--r--src/surface.zig26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/surface.zig b/src/surface.zig
index 6e383841..998e3230 100644
--- a/src/surface.zig
+++ b/src/surface.zig
@@ -246,8 +246,7 @@ pub const Region = struct {
/// A notice's index in its pane's `notices`.
notice: u8 = 0,
/// A body's view: the first line it shows (a file's scroll, a
- /// terminal's grid offset), for what a pixel shell moves with the text
- /// (G13's parallax).
+ /// terminal's grid offset).
line: i32 = 0,
/// Cells the column-move rail takes off the right edge while it runs
/// there: layers and pixel shells stop short of them, the grid does not.
@@ -307,29 +306,6 @@ pub const Chrome = struct {
/// The scroll column's width, button and scrollbar alike, in pixels at
/// a 17px tagline (acme's 12 at its font); a pixel shell scales it.
rail_px: u8 = 12,
- /// The theme's ornament (colors.Decor), a pixel shell's alone: the dot
- /// grid on the page, the scroll track's checker, the tags' plaques
- /// (frame, shadow, the focused one's stripes) and the file name's shadow, each null when the theme has none, sizes
- /// in logical pixels. `name_ink` and `active_name_ink` are the file
- /// name's colours in a tag, which the shadow goes under.
- decor_dots: ?[3]u8 = null,
- decor_dot_alpha: u8 = 0,
- decor_dot_px: u8 = 22,
- decor_checker: ?[3]u8 = null,
- decor_checker_px: u8 = 3,
- decor_box_border: ?[3]u8 = null,
- decor_box_border_px: u8 = 2,
- decor_box_shadow: ?[3]u8 = null,
- decor_box_shadow_px: u8 = 5,
- decor_box_stripe: ?[3]u8 = null,
- decor_box_stripe_px: u8 = 2,
- decor_title: ?[3]u8 = null,
- decor_title_px: u8 = 2,
- name_ink: [3]u8 = .{ 0, 0, 0 },
- active_name_ink: [3]u8 = .{ 0, 0, 0 },
- /// A pixel shell's small effects: bit 3 the page pattern's parallax
- /// (G13, Parallax).
- fx: u8 = 0,
};
/// The canonical interface: what a frame of pardes IS. The tui shell writes