diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 14:26:37 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 14:44:17 -0300 |
| commit | 70fcd1b561f6f18e95101633a0f1bcd3f30a0247 (patch) | |
| tree | 75300629dd695ab3e117c9ae3282bfc5102f1268 /core | |
| parent | da3bc8e006f86889f7abfd55168ce29f1a01e554 (diff) | |
| download | pardes-70fcd1b561f6f18e95101633a0f1bcd3f30a0247.tar.gz pardes-70fcd1b561f6f18e95101633a0f1bcd3f30a0247.zip | |
gui: a pane's message mark (Messages.markOf: `✗ ! ? ⋯`) is drawn in the window: its button's glyph where the mode draws none, in its kind's ink pushed to 4.5:1 off the button's fill (UX D4; colors.pushAway made pub), the mode's two bars giving way to it: draw.zig renderPane writes the mark in the box's SECOND cell, which a cell shell shows beside the mode, but the window draws a pane's box as acme's button across both gutter cells (scrollColumn: 14 px of the 20 at 16 px, 27 of 32 at 26 px, the text 6 and 5 px past it) and blanks every grip cell but the first (emitSurfaceCell: `here.pane_grip` emits a blank, its glyph only the cell at the button's left edge, the cell shells' dirty `*` meant to go that way), so the mark was dropped: the window showed the box, then the path (S2 09a, 10a: `mark-16-zoom.png`, `mark-26-zoom.png`); there is no cell between the button and the text to put it on, so the button holds it (boxMark: the box's first cell blank, its second neither blank nor the dirty `*`); a mode glyph (`^` typing or insert, `$` tty, a window letter) keeps the button, the mark back at rest; the dirty fill and the focus ring stay as they are; TEST FIRST: gui.zig "a pane's mark is its button's glyph where the mode draws none, ..." (the box's two cells as renderPane writes them, an error mark on a focused button: on the base's emitSurfaceCell and gripDecor (`mark` false) fails at gui.zig:8410, no `✗` glyph rasterized, and the bars drawn; passes with them); a user saw no mark in any window since the messages line landed
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core')
| -rw-r--r-- | core/colors.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/colors.zig b/core/colors.zig index 4f58aed5..61af2e4a 100644 --- a/core/colors.zig +++ b/core/colors.zig @@ -733,7 +733,7 @@ fn toward(ink: [3]u8, ground: [3]u8, floor: f32) [3]u8 { /// `ink` pushed by fiftieths toward white or black, whichever reads better /// on all its grounds, until it reads at `floor` on every one; where no ink /// does (solarized's mid-grey tag), that end, the most any ink reaches. -fn pushAway(ink: [3]u8, grounds: []const [3]u8, floor: f32) [3]u8 { +pub fn pushAway(ink: [3]u8, grounds: []const [3]u8, floor: f32) [3]u8 { const white: [3]u8 = @splat(255); const black: [3]u8 = @splat(0); if (leastContrast(ink, grounds) >= floor) return ink; |
