diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-26 03:40:00 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-26 04:15:33 -0300 |
| commit | 0788ce68c4c43148d3d5fa173b4fe46aa10371c9 (patch) | |
| tree | 54fe1321dbf0e31d9f8151efedbf29a2609ad6cb /core/themes/rosebones_dark.zig | |
| parent | 60e85abe53debc0c8dd8986b748e9c86086e0007 (diff) | |
| download | pardes-0788ce68c4c43148d3d5fa173b4fe46aa10371c9.tar.gz pardes-0788ce68c4c43148d3d5fa173b4fe46aa10371c9.zip | |
themes, colors, gen_themes: every theme file in the v2 names, values unchanged (the themes programme's L3; DESIGN.md B2, B3, B8, E1, G4, G6), the fields the new names derive deleted, the comptime fold of the old names gone, each faithful port's file saying each own colour pardes moves to meet a floor, and E1's five fixes: THE FILES: core/themes/*.zig renamed by a script (bg page, fg text, tag_bg tag, tag_fg tag_text, box accent, sel_bg selection, kw keyword, str string, num number, palette ansi, sel_fg selection_text, tag_active_* tag_focus*, tag_name_fg tag_name, tagline_* workspace*, lineno* line_number*, search_bg hit, diagnostic_* the severities, border rule, scroll_* rail*, empty_col empty_column, box_border grip_ring, box_dirty dirty, column_box column_grip, tag_sel_bg tag_selection; seoul256's level rows and their citations too), box_dim, column_box_dim, tag_active_name_fg, search_fg and acme's tag_reading_bg deleted with the lines citing them (B8: always derived; G1': acme's #f3f0cc reading tint goes with the ground), acme's sweep_bg and sweep_fg one `sweeps`; tools/gen_themes.zig writes the generated ones in the same names (its emitted box_dim, the selection again, gone); `colors.fold` folds the files into `Theme` itself (a field no Theme has is a compile error; `as` turns acme's sweep literals into Theme.Sweep, which a literal's own struct type does not coerce to); `legacy_themes`, the ring folded in the old names at comptime, deleted: THE OLD NAMES' VIEW (what draw.zig and the old ChromeTheme and Roles still read until L2a) is a ring theme's chrome's, `ChromeTheme.view`, filled from its Chrome as L1 filled a new-names ThemeFile's (`viewOf`: the old required fields a theme leaves unset, and the derived ones: box_dim a resting grip's fill, the tag's own ground where a theme rings its grips itself (acme's clean button, so its grid grip keeps its look) else the resting ring; tag_active_name_fg `name[1]`, column_box_dim `grip.column_rest`); `Pardes.theme()` reads it (a ThemeFile's, the file itself, as before); ChromeTheme.box, the focused grip the grid fills, is the chrome's `grip.focus` (the accent held 3:1, R6: ayu_light's accent, 2:1 on its tag, was its resting ring too, and the grid drew its focused and resting grips alike); the library's `Theme` and `themes` are the v2 ones (lib_syntax: page, ink and synInk read page, text, keyword, string, number, comment; Grounds.of takes a Theme), runtime/macos.zig's bare page reads `themes[0].page`; E1's FIXES (the ring test's L3 list): acme's sixteen each 4.5:1 on its page, the native floor (6, 8 and 13 held darker in their hue; 10, 11 and 14, held there, landed on their normal colour and go 0.06 OKLab darker than it, R14's bright on a light page: #038384 #757575 #016e08 #785300 #b942b9 #017070); solarized_dark's, solarized_light's and seoul256's light levels' search hit their own hue as a ground the text reads on (#1d180e, #ffeb99, #a6e6fe; each file says from what and why); R8 takes a theme's own hit at R0's visible alternative, 1.1:1 off the page with 0.08 OKLab, only where its text leaves no room for 1.5:1 (no ground that far off keeps the text its floor: those four and forge_soft and ayu_light, whose own hits are taken now where an amber stood; no other theme's hit moves), else E1's `hit` fixes could not be met; G4: core/themes' ports say, under "Moved by pardes as it loads", each own colour Chrome.of moves (focused tag and grip, the resting and unsaved grip, the selection and its ink, the hit, the four severities on the page; 267 lines over 54 files, written from the test's own output by .scratch/themes/L3457/tools/g4_headers.py); RUN (TEST FIRST): colors.zig "every faithful port's file says each of its own colours pardes moves to meet a floor (DESIGN.md G4)" (each port's own value Chrome.of moves, as `role #own -> #got`, found in its file): fails on the renamed files with 273 unsaid, passes now; "every theme in the ring meets every floor ..." with L3's five taken off its list: acme fails ansi and ansi_pro, solarized_dark, solarized_light, seoul256_light_254 and _255 fail hit, all five pass now: 266 of 285 themes pass (261 at L1), 19 on the list (L4 6, L5 1, L7 8, soft 4); draw.zig's "an unfocused reading pane's box in the grid is its ring round the reading tint where the box's fill is the tag's own ground (acme's)" failed on the first view (acme's resting fill its ring), passes with the tag's ground; "a grip's four states ... are each its own" failed in ayu_light on the raw accent, passes on grip.focus; the old tests that pinned the deleted fields' file values keep what is still a file's (a name's tint at its tag ink's lightness, the accent off the column grip; the helix document test strips the derived fields too; the names test reads Chrome's names, an ink held to white or black its own name, ao's and modus_vivendi's); the consumer's lib.zig pins orchard's page, ink and syntax unchanged (dark's page its `.tag`); the ring's values unchanged by the rename (the ring test's count and every original's colour asserted unmoved); core-test 1133/1306 (173 skipped: L2b's 1132/1305 + the G4 test); OUTSIDE my files: core/Core.zig `theme()` (the view), core/lib_syntax.zig (v2 Theme), runtime/macos.zig `pardes_theme_bg` (one line), test/consumer/lib.zig (`.tag`); the process goldens move with the view (the grid's resting grip, the focused name's tint, the column grip at rest, acme's reading grip) and are re-recorded and read at the programme's end gate; no dump or digest change (the view is the chrome's, a `local` field)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/themes/rosebones_dark.zig')
| -rw-r--r-- | core/themes/rosebones_dark.zig | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/core/themes/rosebones_dark.zig b/core/themes/rosebones_dark.zig index bd3ae169..0954e615 100644 --- a/core/themes/rosebones_dark.zig +++ b/core/themes/rosebones_dark.zig @@ -16,63 +16,61 @@ //! only), so it inherits Normal. TabLine links to StatusLine, TabLineFill to //! StatusLineNC. Accent is the lualine normal-mode a bg, a muted neutral (the //! theme is contrast-based, not hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #5d5978 -> #8c88aa: 1.53:1 on the focused tag, now 3.01:1 (R6: 3:1) pub const theme = .{ .name = "rosebones_dark", // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:33 Normal guibg - .bg = .{ 0x1a, 0x18, 0x25 }, + .page = .{ 0x1a, 0x18, 0x25 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:33 Normal guifg - .fg = .{ 0xe1, 0xd4, 0xd4 }, + .text = .{ 0xe1, 0xd4, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:211 Visual guibg - .sel_bg = .{ 0x52, 0x3a, 0x39 }, + .selection = .{ 0x52, 0x3a, 0x39 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xe1, 0xd4, 0xd4 }, + .selection_text = .{ 0xe1, 0xd4, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:198 StatusLineNC guibg - .tag_bg = .{ 0x24, 0x22, 0x32 }, + .tag = .{ 0x24, 0x22, 0x32 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:198 StatusLineNC guifg - .tag_fg = .{ 0xe9, 0xe0, 0xe0 }, + .tag_text = .{ 0xe9, 0xe0, 0xe0 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:195 StatusLine guibg #312e43, adjusted - .tag_active_bg = .{ 0x42, 0x3e, 0x59 }, + .tag_focus = .{ 0x42, 0x3e, 0x59 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:195 StatusLine guifg - .tag_active_fg = .{ 0xe1, 0xd4, 0xd4 }, + .tag_focus_text = .{ 0xe1, 0xd4, 0xd4 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/rosebones_dark_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x5d, 0x59, 0x78 }, - // derived: the grip at rest, the accent #534e6f faded toward the unfocused tag #242232 as far as 1.6:1 off it (0.72 of the way) - .box_dim = .{ 0x46, 0x42, 0x5e }, + .accent = .{ 0x5d, 0x59, 0x78 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/rosebones.vim:41 Changed guifg - .box_dirty = .{ 0x9c, 0xcf, 0xd8 }, + .dirty = .{ 0x9c, 0xcf, 0xd8 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/rosebones.vim:207 Type guifg - .column_box = .{ 0xdf, 0xde, 0xf1 }, + .column_grip = .{ 0xdf, 0xde, 0xf1 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:191 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x31, 0x74, 0x90 }, + .keyword = .{ 0x31, 0x74, 0x90 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:201 String guifg - .str = .{ 0xbc, 0x94, 0x93 }, + .string = .{ 0xbc, 0x94, 0x93 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:164 Number guifg - .num = .{ 0xbc, 0x94, 0x93 }, + .number = .{ 0xbc, 0x94, 0x93 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:47 Comment guifg .comment = .{ 0x69, 0x65, 0x7e }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:150 LineNr guifg - .lineno = .{ 0x62, 0x5d, 0x7f }, + .line_number = .{ 0x62, 0x5d, 0x7f }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:62 CursorLineNr guifg - .lineno_active = .{ 0xe1, 0xd4, 0xd4 }, + .line_number_current = .{ 0xe1, 0xd4, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:167 PmenuSbar guibg - .scroll_track = .{ 0x5a, 0x55, 0x78 }, + .rail = .{ 0x5a, 0x55, 0x78 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:169 PmenuThumb guibg - .scroll_thumb = .{ 0x84, 0x80, 0x9d }, + .rail_thumb = .{ 0x84, 0x80, 0x9d }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:218 WinSeparator guifg - .border = .{ 0x62, 0x5d, 0x7f }, + .rule = .{ 0x62, 0x5d, 0x7f }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:172 Search guibg - .search_bg = .{ 0x67, 0x35, 0x92 }, - // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:172 Search guifg - .search_fg = .{ 0xe1, 0xd4, 0xd4 }, + .hit = .{ 0x67, 0x35, 0x92 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:113 Error guifg via DiagnosticError->Error (link :114) - .diagnostic_error = .{ 0xeb, 0x71, 0x93 }, + .@"error" = .{ 0xeb, 0x71, 0x93 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:212 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :213) - .diagnostic_warning = .{ 0xf6, 0xc0, 0x74 }, + .warning = .{ 0xf6, 0xc0, 0x74 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:72 DiagnosticInfo guifg - .diagnostic_info = .{ 0x9c, 0xcf, 0xd8 }, + .info = .{ 0x9c, 0xcf, 0xd8 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:67 DiagnosticHint guifg - .diagnostic_hint = .{ 0xc4, 0xa7, 0xe7 }, - .palette = .{ + .hint = .{ 0xc4, 0xa7, 0xe7 }, + .ansi = .{ .{ 0x1a, 0x18, 0x25 }, // 0: ~/05-genizah/zenbones.nvim/colors/rosebones.vim:17 g:terminal_color_0 .{ 0xeb, 0x71, 0x93 }, // 1: ~/05-genizah/zenbones.nvim/colors/rosebones.vim:18 g:terminal_color_1 .{ 0x31, 0x74, 0x90 }, // 2: ~/05-genizah/zenbones.nvim/colors/rosebones.vim:19 g:terminal_color_2 |
