summaryrefslogtreecommitdiff
path: root/core/themes/dark_plus.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 03:40:00 -0300
committerGabriel Schneider <[email protected]>2026-11-26 04:15:33 -0300
commit0788ce68c4c43148d3d5fa173b4fe46aa10371c9 (patch)
tree54fe1321dbf0e31d9f8151efedbf29a2609ad6cb /core/themes/dark_plus.zig
parent60e85abe53debc0c8dd8986b748e9c86086e0007 (diff)
downloadpardes-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/dark_plus.zig')
-rw-r--r--core/themes/dark_plus.zig62
1 files changed, 31 insertions, 31 deletions
diff --git a/core/themes/dark_plus.zig b/core/themes/dark_plus.zig
index 9c1cb689..f0a13f1e 100644
--- a/core/themes/dark_plus.zig
+++ b/core/themes/dark_plus.zig
@@ -8,67 +8,67 @@
//! Adjusted to meet pardes's floors (chrome only; text, syntax and ANSI are untouched):
//! - unfocused tag ground #2d2d2d -> #3c3c3c: 1.21:1 off the focused one (the page, kept), pardes needs 1.5:1 on a dark page
//! - unfocused tag text #969696 -> #a7a7a7: 3.73:1 on #3c3c3c, tag text needs 4.5:1 to be read and run
+//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of):
+//! - focused tag ground #1e1e1e -> #565656: 1.51:1 off the tag, now 1.50:1 (R4, H: a focus step off the tag, and the loudest)
+//! - focused grip #007fd4 -> #4dabff: 1.74:1 on the focused tag, now 3.00:1 (R6: 3:1)
+//! - unsaved grip #3399cc -> #4db0e4: 3.45:1 on the tag, now 4.54:1 (R6: 3:1 on both tags)
pub const theme = .{
.name = "dark_plus",
// /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 colors."editor.background"
- .bg = .{ 0x1e, 0x1e, 0x1e },
+ .page = .{ 0x1e, 0x1e, 0x1e },
// /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 colors."editor.foreground"
- .fg = .{ 0xd4, 0xd4, 0xd4 },
+ .text = .{ 0xd4, 0xd4, 0xd4 },
// ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:122 editor.selectionBackground dark
- .sel_bg = .{ 0x26, 0x4f, 0x78 },
+ .selection = .{ 0x26, 0x4f, 0x78 },
// the original keeps text colours over its selection; its text colour
- .sel_fg = .{ 0xd4, 0xd4, 0xd4 },
+ .selection_text = .{ 0xd4, 0xd4, 0xd4 },
// ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:36 tab.inactiveBackground dark #2d2d2d, adjusted
- .tag_bg = .{ 0x3c, 0x3c, 0x3c },
+ .tag = .{ 0x3c, 0x3c, 0x3c },
// ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:56 tab.inactiveForeground dark = transparent(tab.activeForeground #FFFFFF, 0.5) over #2d2d2d #969696, adjusted
- .tag_fg = .{ 0xa7, 0xa7, 0xa7 },
+ .tag_text = .{ 0xa7, 0xa7, 0xa7 },
// ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:31 tab.activeBackground = editorBackground
- .tag_active_bg = .{ 0x1e, 0x1e, 0x1e },
+ .tag_focus = .{ 0x1e, 0x1e, 0x1e },
// ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:49 tab.activeForeground dark Color.white
- .tag_active_fg = .{ 0xff, 0xff, 0xff },
+ .tag_focus_text = .{ 0xff, 0xff, 0xff },
// the tagline is the status bar: ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:298 statusBar.background dark #007ACC
- .tagline_bg = .{ 0x00, 0x7a, 0xcc },
+ .workspace = .{ 0x00, 0x7a, 0xcc },
// ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:289 statusBar.foreground dark #FFFFFF
- .tagline_fg = .{ 0xff, 0xff, 0xff },
+ .workspace_text = .{ 0xff, 0xff, 0xff },
// the focused grip: ~/05-genizah/vscode/src/vs/platform/theme/common/colors/baseColors.ts:38 focusBorder dark
- .box = .{ 0x00, 0x7f, 0xd4 },
- // derived: the grip at rest, the accent #007fd4 faded toward the unfocused tag #3c3c3c as far as 1.6:1 off it (0.54 of the way)
- .box_dim = .{ 0x1c, 0x60, 0x8e },
+ .accent = .{ 0x00, 0x7f, 0xd4 },
// an unsaved grip: the original's modified colour, ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:176 tab.activeModifiedBorder dark
- .box_dirty = .{ 0x33, 0x99, 0xcc },
+ .dirty = .{ 0x33, 0x99, 0xcc },
// derived: the column grip, the original's type colour, /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_plus.json:1 tokenColors entity.name.type
- .column_box = .{ 0x4e, 0xc9, 0xb0 },
+ .column_grip = .{ 0x4e, 0xc9, 0xb0 },
// /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 tokenColors keyword (keyword.control is #C586C0 in dark_plus.json:1; pardes has one keyword colour)
- .kw = .{ 0x56, 0x9c, 0xd6 },
+ .keyword = .{ 0x56, 0x9c, 0xd6 },
// /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 tokenColors string
- .str = .{ 0xce, 0x91, 0x78 },
+ .string = .{ 0xce, 0x91, 0x78 },
// /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 tokenColors constant.numeric
- .num = .{ 0xb5, 0xce, 0xa8 },
+ .number = .{ 0xb5, 0xce, 0xa8 },
// /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 tokenColors comment
.comment = .{ 0x6a, 0x99, 0x55 },
// ~/05-genizah/vscode/src/vs/editor/common/core/editorColorRegistry.ts:29 editorLineNumber.foreground dark
- .lineno = .{ 0x85, 0x85, 0x85 },
+ .line_number = .{ 0x85, 0x85, 0x85 },
// ~/05-genizah/vscode/src/vs/editor/common/core/editorColorRegistry.ts:48 editorActiveLineNumber.foreground dark (editorLineNumber.activeForeground defaults to it, :49)
- .lineno_active = .{ 0xc6, 0xc6, 0xc6 },
+ .line_number_current = .{ 0xc6, 0xc6, 0xc6 },
// ~/05-genizah/vscode/src/vs/platform/theme/common/colors/miscColors.ts:68 scrollbar.background null: the editor shows through
- .scroll_track = .{ 0x1e, 0x1e, 0x1e },
+ .rail = .{ 0x1e, 0x1e, 0x1e },
// ~/05-genizah/vscode/src/vs/platform/theme/common/colors/miscColors.ts:57 scrollbarSlider.background dark #797979 at 0.4, over #1e1e1e
- .scroll_thumb = .{ 0x42, 0x42, 0x42 },
+ .rail_thumb = .{ 0x42, 0x42, 0x42 },
// ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:237 editorGroup.border dark
- .border = .{ 0x44, 0x44, 0x44 },
+ .rule = .{ 0x44, 0x44, 0x44 },
// ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:149 editor.findMatchBackground dark
- .search_bg = .{ 0x51, 0x5c, 0x6a },
- // derived: the original keeps text colours over a match; the page's text, whichever reads better on it
- .search_fg = .{ 0xd4, 0xd4, 0xd4 },
+ .hit = .{ 0x51, 0x5c, 0x6a },
// ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:71 editorError.foreground dark
- .diagnostic_error = .{ 0xf1, 0x4c, 0x4c },
+ .@"error" = .{ 0xf1, 0x4c, 0x4c },
// ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:84 editorWarning.foreground dark
- .diagnostic_warning = .{ 0xcc, 0xa7, 0x00 },
+ .warning = .{ 0xcc, 0xa7, 0x00 },
// ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:97 editorInfo.foreground dark
- .diagnostic_info = .{ 0x59, 0xa4, 0xf9 },
+ .info = .{ 0x59, 0xa4, 0xf9 },
// ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:106 editorHint.foreground dark #eeeeee at 0.7, over #1e1e1e
- .diagnostic_hint = .{ 0xb0, 0xb0, 0xb0 },
- .palette = .{
+ .hint = .{ 0xb0, 0xb0, 0xb0 },
+ .ansi = .{
.{ 0x00, 0x00, 0x00 }, // 0: ~/05-genizah/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.ts:107 terminal.ansiBlack dark
.{ 0xcd, 0x31, 0x31 }, // 1: ~/05-genizah/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.ts:116 terminal.ansiRed dark
.{ 0x0d, 0xbc, 0x79 }, // 2: ~/05-genizah/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.ts:125 terminal.ansiGreen dark