summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-25 10:02:29 -0300
committerGabriel Schneider <[email protected]>2026-11-25 10:04:37 -0300
commit635829a5c17be4fd4bc30866e2b361c4ea2876e1 (patch)
tree239c786326408e44a8d1f1bba42be492e88beea0 /core/Core.zig
parent98f5abfc10d9984a69940a6805d974018e5ea01e (diff)
downloadpardes-635829a5c17be4fd4bc30866e2b361c4ea2876e1.tar.gz
pardes-635829a5c17be4fd4bc30866e2b361c4ea2876e1.zip
colors, tools/gen_themes.zig: the err role falls back from a theme's diagnostic.error ink to its error ink, then to its red (UX D4/D14, E3, E5 fix 7), so an invalid pattern's reason in a prompt (Prompt.head's .err span, drawn in roles.err) and a message's error glyph and ghosts are red on the imported themes: THE CAUSE: the generator wrote no diagnostic_error for a helix theme (neonotte's "diagnostic.error" is an underline only) and colors.zig fell back to the body's ink, so UX2 measured the reason in fg #cdd6f4 (P2-L 13); THE FIX: gen_themes.zig's Theme has diagnostic_error, a helix theme's from diagnostic.error's fg, else error's fg, else its red (its [palette] red, else the terminal's), a zed theme's from its `error` status colour; colors.zig's ChromeTheme.diagnostic_error and Roles.err fall back to the palette's red (index 1) before the ink, for a theme that names none and has a palette (acme: #aa2222; dark and helix keep their ink: no palette); the err role is still pushed to 4.5:1 on the tags and the page (the floors test passes for every bundled theme); ChromeTheme.diagnostic_error also colours a +Errors row, a diagnostic's underline and the notice row's error glyph, which move to the same red on those themes (the themes pardes ships its own colours for, orchard first, are as they were); TEST FIRST: colors.zig "the err role falls back from diagnostic.error's ink to error's, then to the theme's red (UX E3): ..." (on the base: neonotte84's diagnostic_error null, colors.zig:1628); passes now, with every colors test
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/Core.zig')
0 files changed, 0 insertions, 0 deletions