From 70fcd1b561f6f18e95101633a0f1bcd3f30a0247 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 25 Nov 2026 14:26:37 -0300 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE --- core/colors.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/colors.zig') 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; -- cgit v1.3