summaryrefslogtreecommitdiff
path: root/core/themes
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 04:37:03 -0300
committerGabriel Schneider <[email protected]>2026-11-26 04:41:35 -0300
commit77b22e7c7623696feb52292bb86839870e20050d (patch)
treef923275a1d118bc4227a349842c7202f74004d7d /core/themes
parentfed268f2282a6d393a116d103e1fd88da87ecbff (diff)
downloadpardes-77b22e7c7623696feb52292bb86839870e20050d.tar.gz
pardes-77b22e7c7623696feb52292bb86839870e20050d.zip
themes, vendor, colors, gen_themes, exec, ctl, dump: DESIGN.md E's 44 themes retired, each name standing for its successor wherever it is still read (the themes programme's L7; DESIGN.md E, F): GONE: 28 helix sources (base16_default_light, base16_terminal, base16_transparent, bogster_light, cyan_light, eldritch_transparent, gruvbox-material, hex_lavender, hex_poison, ingrid, iroaseta, nord_light, nyxvamp-transparent, peachpuff, the six helix seoul256s, term16_dark, term16_light, tokyonight, ttox, ttox_soft, vesper-transparent, zed_onedark, zed_onelight), zed's ayu.json and gruvbox.json (every variant in them retired: ayu_dark/light/mirage_zed, the six gruvbox_*_zed) and their licences (ayu.LICENSE, gruvbox.LICENSE: zed's, covering those files alone; helix's licences each cover a kept theme), seoul256's 238, 239, 252 and 253 (their rows, their citations, their lines in its G4 block); vendor/themes/base/ holds the retired three kept themes inherit from (ayu_dark_helix, hex_steel, nord_helix; the designer's list named seven, but no kept theme inherits seoul256_dark/_light, term16_dark or zed_onedark once their children retire), passed to the generator as `base=<path>` (build/core.zig `vendoredThemes` per directory), read for `inherits`, never rung; THE SUCCESSORS: `colors.retired`, 44 names and the kept one each stands for (the kept twin, the nearest kept seoul256 step, dark or light for the terminal-colour themes, the default where there is none: ingrid), read by `successorOf`: a `Theme` (an init file's line, a click, a /ctl write) naming one wears its successor and says so once, as a notice: "Theme gruvbox_dark_zed was retired: gruvbox instead" (exec.applySettingBuiltin); /ctl takes such a write (ctl.zig); a dump or Restore naming one restores its successor (`colors.restoredIndex`, dump.zig's two readers, which said the same loop twice; one this build has nothing of keeps the theme in effect as before, else the default by name, where it was index 0, dark's now); an unknown name keeps today's path and words; THE RING TEST'S LIST: empty, so gone (`ring_expected` and its bookkeeping: every theme in the ring passes every floor it is held to, or the test names it); RUN (TEST FIRST): colors.zig "a retired theme's name stands for its successor in an init file and a dump, said once; an unknown one leaves the default, in today's words" (an init `Theme gruvbox_dark_zed`, `Theme TTOX` (any case), `Theme ingrid` and `Theme no-such-theme`: gruvbox, dark, orchard and orchard, each with its one message; a dump of a session in acme with `ttox` put in for its theme's name, as an older build's: restored in dark): fails on L5 (gruvbox_dark_zed still in the ring, worn as itself), passes now; "every retired theme's successor is in the ring, and no retired name is" (44); the ring test: 245 of 245 themes pass every floor (289 at L5, 44 retired); "seoul256's eight backgrounds ring in their order"; the G4 test holds every port's file; core-test 1142/1315 (173 skipped: L5's 1140/1313 + the two retirement tests); OUTSIDE my files: build/core.zig (`vendoredThemes` per directory, the base arguments), core/exec.zig (`Theme`'s retired branch, 7 lines), core/ninep/ctl.zig (1 line), core/dump.zig (its two readers, `restoredIndex`); the dump's bytes and layout unchanged and a name in this build's ring restored as before (restoredIndex's first loop is the old one), so a join or a restore within a build never reaches the new branches: no fuzz or soak
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/themes')
-rw-r--r--core/themes/seoul256.zig78
1 files changed, 5 insertions, 73 deletions
diff --git a/core/themes/seoul256.zig b/core/themes/seoul256.zig
index 0c4c17ab..5940d485 100644
--- a/core/themes/seoul256.zig
+++ b/core/themes/seoul256.zig
@@ -1,7 +1,8 @@
//! Seoul256 (junegunn/seoul256.vim), as close to the original as pardes
-//! can draw it: its dark style at each of its backgrounds 233 to 239 and its
-//! light one at 252 to 256, a theme each (`dark`, `light`; colors.zig rings
-//! them as seoul256_<style>_<level>). Every value is the original's own,
+//! can draw it: its dark style at each of its backgrounds 233 to 237 and its
+//! light one at 254 to 256, a theme each (`dark`, `light`; colors.zig rings
+//! them as seoul256_<style>_<level>; 238, 239, 252 and 253 retired, DESIGN.md
+//! E: their text leaves the hits no room). Every value is the original's own,
//! cited on its line (path:line key), once for the family: a value every
//! level shares where it is set below, one a level changes in that level's
//! row of `dark_levels` or `light_levels`, with what pardes adjusted there.
@@ -63,36 +64,7 @@
//! - dark_237: search hit #007299 -> #7a5932: 1.61:1 off the page, now 1.37:1 (R8: 1.5:1, the text reading on it)
//! - dark_237: error #e12672 -> #fe9fb7: 1.96:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others)
//! - dark_237: warning #e09b99 -> #deb565: 3.87:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others)
-//! - dark_238: tag ground #6b6b6b -> #606060: 1.38:1 off the page, now 1.17:1 (H: a band 1.1:1 off the page; R3: tone on tone)
-//! - dark_238: focused tag ground #b97877 -> #7c7c7c: 1.80:1 off the tag, now 1.51:1 (R4, H: a focus step off the tag, and the loudest)
-//! - dark_238: focused grip #007173 -> #003a3c: 1.39:1 on the focused tag, now 3.01:1 (R6: 3:1)
-//! - dark_238: unsaved grip #719cdf -> #c7ddfe: 2.25:1 on the tag, now 4.55:1 (R6: 3:1 on both tags)
-//! - dark_238: selection #007173 -> #13797b: 1.26:1 off the page, now 1.42:1 (R7)
-//! - dark_238: selection text #d9d9d9 -> #efefef: 3.67:1 on the selection, now 4.51:1 (R7: 4.5:1)
-//! - dark_238: search hit #007299 -> #7a5932: 1.35:1 off the page, now 1.15:1 (R8: 1.5:1, the text reading on it)
-//! - dark_238: error #e12672 -> #feb8c8: 1.65:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others)
-//! - dark_238: warning #e09b99 -> #eec575: 3.26:1 on the page, now 4.50:1 (R9: 4.5:1, told from the text and the others)
-//! - dark_239: focused tag ground #ac8f86 -> #949494: 1.54:1 off the tag, now 1.52:1 (R4, H: a focus step off the tag, and the loudest)
-//! - dark_239: focused grip #007173 -> #005153: 1.92:1 on the focused tag, now 3.01:1 (R6: 3:1)
-//! - dark_239: unsaved grip #719cdf -> #032a63: 1.65:1 on the tag, now 3.01:1 (R6: 3:1 on both tags)
-//! - dark_239: selection #007173 -> #278587: 1.06:1 off the page, now 1.41:1 (R7)
-//! - dark_239: selection text #d9d9d9 -> #0a0a0a: 3.11:1 on the selection, now 4.52:1 (R7: 4.5:1)
-//! - dark_239: search hit #007299 -> #83613a: 1.14:1 off the page, now 1.10:1 (R8: 1.5:1, the text reading on it)
-//! - dark_239: error #e12672 -> #ffd2d0: 1.39:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others)
-//! - dark_239: warning #e09b99 -> #ffd78b: 2.75:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others)
-//! - light_252, light_253, light_254, light_255, light_256: focused grip #4b6465 -> #213839: 1.53:1 on the focused tag, now 3.00:1 (R6: 3:1)
-//! - light_252: unsaved grip #719cdf -> #0b326c: 1.67:1 on the tag, now 7.44:1 (R6: 3:1 on both tags)
-//! - light_252: selection #bcdede -> #a8c9c9: 1.02:1 off the page, now 1.25:1 (R7)
-//! - light_252: selection text #616161 -> #505050: 3.50:1 on the selection, now 4.56:1 (R7: 4.5:1)
-//! - light_252: search hit #a6e6fe -> #febfbc: 1.03:1 off the page, now 1.11:1 (R8: 1.5:1, the text reading on it)
-//! - light_252: error #e12672 -> #bc045a: 3.15:1 on the page, now 4.50:1 (R9: 4.5:1, told from the text and the others)
-//! - light_252: warning #be7572 -> #904b4a: 2.49:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others)
-//! - light_253: unsaved grip #719cdf -> #0b326c: 1.81:1 on the tag, now 8.09:1 (R6: 3:1 on both tags)
-//! - light_253: selection #bcdede -> #aed0d0: 1.10:1 off the page, now 1.26:1 (R7)
-//! - light_253: selection text #616161 -> #555555: 3.76:1 on the selection, now 4.52:1 (R7: 4.5:1)
-//! - light_253: search hit #a6e6fe -> #fecac7: 1.04:1 off the page, now 1.11:1 (R8: 1.5:1, the text reading on it)
-//! - light_253: error #e12672 -> #c4095f: 3.40:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others)
-//! - light_253: warning #be7572 -> #95504f: 2.69:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others)
+//! - light_254, light_255, light_256: focused grip #4b6465 -> #213839: 1.53:1 on the focused tag, now 3.00:1 (R6: 3:1)
//! - light_254: unsaved grip #719cdf -> #0b326c: 1.98:1 on the tag, now 8.82:1 (R6: 3:1 on both tags)
//! - light_254: selection #bcdede -> #b7d8d8: 1.18:1 off the page, now 1.25:1 (R7)
//! - light_254: selection text #616161 -> #5a5a5a: 4.08:1 on the selection, now 4.54:1 (R7: 4.5:1)
@@ -170,28 +142,6 @@ const dark_levels = [_]Dark{
// adjusted: focused grip #007173 -> #006c6e: 1.43:1 on the focused tag #9d7473
// adjusted: rules between panes #333233 -> #6b6b6b: 1.46:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does)
.{ .level = 237, .page = .{ 0x4b, 0x4b, 0x4b }, .tag = .{ 0x61, 0x61, 0x61 }, .tag_text = .{ 0xdf, 0xde, 0xbd }, .tag_focus = .{ 0x9d, 0x74, 0x73 }, .tag_focus_text = .{ 0x12, 0x12, 0x0f }, .accent = .{ 0x00, 0x6c, 0x6e }, .rule = .{ 0x6b, 0x6b, 0x6b } },
- // page: S:206 Normal guibg = s:hi arg s:dark_bg = 238 -> s:rgb_map[238] S:133
- // tag: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 240 -> s:rgb_map[240] S:133
- // tag_text: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 #dfdebd, adjusted
- // tag_focus: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 #9a7372, adjusted
- // rule: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 236 -> s:rgb_map[236] S:132 #3f3f3f, adjusted
- // adjusted: focused tag ground #9a7372 -> #b97877: 1.29:1 off the unfocused #6b6b6b, pardes needs 1.5:1 on a dark page
- // adjusted: unfocused tag text #dfdebd -> #eeeddb: 3.89:1 on #6b6b6b, tag text needs 4.5:1 to be read and run
- // adjusted: focused tag text #dfdebd -> #1f1f1a: 2.55:1 on #b97877, tag text needs 4.5:1
- // adjusted: rules between panes #3f3f3f -> #767676: 1.43:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does)
- // index gap: tabline_bg inherits Normal
- .{ .level = 238, .page = .{ 0x56, 0x56, 0x56 }, .tag = .{ 0x6b, 0x6b, 0x6b }, .tag_text = .{ 0xee, 0xed, 0xdb }, .tag_focus = .{ 0xb9, 0x78, 0x77 }, .tag_focus_text = .{ 0x1f, 0x1f, 0x1a }, .accent = .{ 0x00, 0x71, 0x73 }, .rule = .{ 0x76, 0x76, 0x76 } },
- // page: S:206 Normal guibg = s:hi arg s:dark_bg = 239 -> s:rgb_map[239] S:133
- // tag: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 241 -> s:rgb_map[241] S:133
- // tag_text: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 #dfdebd, adjusted
- // tag_focus: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 #9a7372, adjusted
- // rule: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 237 -> s:rgb_map[237] S:132 #4b4b4b, adjusted
- // adjusted: focused tag ground #9a7372 -> #ac8f86: 1.11:1 off the unfocused #757575, pardes needs 1.5:1 on a dark page
- // adjusted: unfocused tag text #dfdebd -> #fdfdfb: 3.36:1 on #757575, tag text needs 4.5:1 to be read and run
- // adjusted: focused tag text #dfdebd -> #2d2c26: 2.18:1 on #ac8f86, tag text needs 4.5:1
- // adjusted: rules between panes #4b4b4b -> #848484: 1.41:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does)
- // index gap: tabline_bg inherits Normal
- .{ .level = 239, .page = .{ 0x61, 0x61, 0x61 }, .tag = .{ 0x75, 0x75, 0x75 }, .tag_text = .{ 0xfd, 0xfd, 0xfb }, .tag_focus = .{ 0xac, 0x8f, 0x86 }, .tag_focus_text = .{ 0x2d, 0x2c, 0x26 }, .accent = .{ 0x00, 0x71, 0x73 }, .rule = .{ 0x84, 0x84, 0x84 } },
};
/// What a light level changes; each row cites where its values come from.
@@ -204,24 +154,6 @@ const Light = struct {
};
const light_levels = [_]Light{
- // page: S:206 Normal guibg = s:hi arg s:light_bg = 252 -> s:rgb_map[252] S:134
- // tag: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 250 -> s:rgb_map[250] S:134
- // tag_text: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133 #565656, adjusted
- // rule: S:287 VertSplit guifg = s:hi arg s:light_bg - 3 = 249 -> s:rgb_map[249] S:133 #bfbfbf, adjusted
- // adjusted: unfocused tag text #565656 -> #545454: 4.39:1 on #c8c8c8, tag text needs 4.5:1 to be read and run
- // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1
- // adjusted: focused grip #719899 -> #4b6465: 1.31:1 on the focused tag #9a7372
- // adjusted: rules between panes #bfbfbf -> #acacac: 1.30:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does)
- // index gap: tabline_bg inherits Normal
- .{ .level = 252, .page = .{ 0xd9, 0xd9, 0xd9 }, .tag = .{ 0xc8, 0xc8, 0xc8 }, .tag_text = .{ 0x54, 0x54, 0x54 }, .rule = .{ 0xac, 0xac, 0xac } },
- // page: S:206 Normal guibg = s:hi arg s:light_bg = 253 -> s:rgb_map[253] S:134
- // tag: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 251 -> s:rgb_map[251] S:134
- // tag_text: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133
- // rule: S:287 VertSplit guifg = s:hi arg s:light_bg - 3 = 250 -> s:rgb_map[250] S:134 #c8c8c8, adjusted
- // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1
- // adjusted: focused grip #719899 -> #4b6465: 1.31:1 on the focused tag #9a7372
- // adjusted: rules between panes #c8c8c8 -> #b3b3b3: 1.28:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does)
- .{ .level = 253, .page = .{ 0xe1, 0xe1, 0xe1 }, .tag = .{ 0xd1, 0xd0, 0xd1 }, .tag_text = .{ 0x56, 0x56, 0x56 }, .rule = .{ 0xb3, 0xb3, 0xb3 } },
// page: S:206 Normal guibg = s:hi arg s:light_bg = 254 -> s:rgb_map[254] S:134
// tag: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 252 -> s:rgb_map[252] S:134
// tag_text: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133