summaryrefslogtreecommitdiff
path: root/src/colors.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 00:15:15 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:21:29 -0300
commit56b459e0aae62760481300aff8d4262e35c3b428 (patch)
treeed5bbf97d775f3df7863c6a69ab0348d7a36af90 /src/colors.zig
parent0fd5243709628fd4eddf7c6e5e3a63fdd28531d6 (diff)
downloadpardes-56b459e0aae62760481300aff8d4262e35c3b428.tar.gz
pardes-56b459e0aae62760481300aff8d4262e35c3b428.zip
themes: seoul256's twelve backgrounds are one family, src/themes/seoul256.zig (`dark(level)`, `light(level)`), where twelve files of a hundred lines each repeated it: one header names the source and how a background resolves, a value the levels share is set and cited once, and a level's own values are its row of dark_levels or light_levels with their citations and what pardes adjusted there; every one of the ring's 286 themes formats to the same bytes before and after (hashed, a one-value change seen to move its hash), and a test pins the twelve in their order after Catppuccin and before Zenbones
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/colors.zig')
-rw-r--r--src/colors.zig39
1 files changed, 27 insertions, 12 deletions
diff --git a/src/colors.zig b/src/colors.zig
index bb2c5b60..6077afce 100644
--- a/src/colors.zig
+++ b/src/colors.zig
@@ -377,6 +377,9 @@ pub const Theme = struct {
decor: ?Decor = null,
};
+/// One family, its twelve backgrounds a theme each (`curated`).
+const seoul256 = @import("themes/seoul256.zig");
+
const curated = struct {
pub const orchard = @import("themes/orchard.zig");
pub const dusk = @import("themes/dusk.zig");
@@ -424,18 +427,18 @@ const curated = struct {
pub const catppuccin_frappe = @import("themes/catppuccin_frappe.zig");
pub const catppuccin_macchiato = @import("themes/catppuccin_macchiato.zig");
pub const catppuccin_mocha = @import("themes/catppuccin_mocha.zig");
- pub const seoul256_dark_233 = @import("themes/seoul256_dark_233.zig");
- pub const seoul256_dark_234 = @import("themes/seoul256_dark_234.zig");
- pub const seoul256_dark_235 = @import("themes/seoul256_dark_235.zig");
- pub const seoul256_dark_236 = @import("themes/seoul256_dark_236.zig");
- pub const seoul256_dark_237 = @import("themes/seoul256_dark_237.zig");
- pub const seoul256_dark_238 = @import("themes/seoul256_dark_238.zig");
- pub const seoul256_dark_239 = @import("themes/seoul256_dark_239.zig");
- pub const seoul256_light_252 = @import("themes/seoul256_light_252.zig");
- pub const seoul256_light_253 = @import("themes/seoul256_light_253.zig");
- pub const seoul256_light_254 = @import("themes/seoul256_light_254.zig");
- pub const seoul256_light_255 = @import("themes/seoul256_light_255.zig");
- pub const seoul256_light_256 = @import("themes/seoul256_light_256.zig");
+ pub const seoul256_dark_233 = seoul256.dark(233);
+ pub const seoul256_dark_234 = seoul256.dark(234);
+ pub const seoul256_dark_235 = seoul256.dark(235);
+ pub const seoul256_dark_236 = seoul256.dark(236);
+ pub const seoul256_dark_237 = seoul256.dark(237);
+ pub const seoul256_dark_238 = seoul256.dark(238);
+ pub const seoul256_dark_239 = seoul256.dark(239);
+ pub const seoul256_light_252 = seoul256.light(252);
+ pub const seoul256_light_253 = seoul256.light(253);
+ pub const seoul256_light_254 = seoul256.light(254);
+ pub const seoul256_light_255 = seoul256.light(255);
+ pub const seoul256_light_256 = seoul256.light(256);
pub const zenbones_light = @import("themes/zenbones_light.zig");
pub const zenbones_dark = @import("themes/zenbones_dark.zig");
pub const neobones_light = @import("themes/neobones_light.zig");
@@ -553,6 +556,18 @@ test "the picker's sections run in ring order and cover it" {
try std.testing.expect(groupAt(native_count) != null);
}
+test "seoul256's twelve backgrounds ring in their order, after Catppuccin and before Zenbones" {
+ const names = [_][]const u8{
+ "seoul256_dark_233", "seoul256_dark_234", "seoul256_dark_235", "seoul256_dark_236",
+ "seoul256_dark_237", "seoul256_dark_238", "seoul256_dark_239", "seoul256_light_252",
+ "seoul256_light_253", "seoul256_light_254", "seoul256_light_255", "seoul256_light_256",
+ };
+ const first = indexOfTheme("seoul256_dark_233");
+ for (names, themes[first..][0..names.len]) |name, t| try std.testing.expectEqualStrings(name, t.name);
+ try std.testing.expectEqualStrings("catppuccin_mocha", themes[first - 1].name);
+ try std.testing.expectEqualStrings("zenbones_light", themes[first + names.len].name);
+}
+
test "lapis_plain is lapis on flat grounds, framed and shadowed as lapis" {
const lapis = themes[indexOfTheme("lapis")];
const plain = themes[indexOfTheme("lapis_plain")];