diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 10:18:23 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | c8bcda00ad54e4f81cc83ffe601d49703f4a7135 (patch) | |
| tree | 521282843c76f88711c4063b3eb809c3d1857927 /src/Output.zig | |
| parent | 826ec1fac3c012e71ab34207328faaac5b5827b7 (diff) | |
| download | pardes-c8bcda00ad54e4f81cc83ffe601d49703f4a7135.tar.gz pardes-c8bcda00ad54e4f81cc83ffe601d49703f4a7135.zip | |
ThemeSel in sections: acme and lapis with the current themes, helix and dark as legacy, a section per ported family
The picker's headings come from colors.theme_groups instead of one split at
native_theme_count, so acme (current, matched to plan9port acme's source)
no longer sits under a legacy heading. Ring order follows the sections:
the fifteen pardes palettes, acme, lapis, the faithful ports a family at a
time, then helix and dark, then the imports. An imported theme whose name a
port takes gets _helix, as zed's carry _zed.
Diffstat (limited to 'src/Output.zig')
| -rw-r--r-- | src/Output.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Output.zig b/src/Output.zig index b32a40a2..553dcc95 100644 --- a/src/Output.zig +++ b/src/Output.zig @@ -522,10 +522,9 @@ pub fn openJumps(p: *Pardes, id: usize) !void { pub fn openThemes(p: *Pardes, id: usize) !void { var out: std.Io.Writer.Allocating = .init(p.gpa); errdefer out.deinit(); - try out.writer.writeAll("# Pardes themes\n"); for (pardes.themes, 0..) |t, i| { - if (i == pardes.native_theme_count) - try out.writer.writeAll("\n# Legacy and imported themes\n"); + if (pardes.colors.groupAt(i)) |title| + try out.writer.print("{s}# {s}\n", .{ if (i == 0) "" else "\n", title }); try out.writer.print(comptime config.Runtime.findAction(.theme).?.word ++ " {s}\n", .{t.name}); } const content = try out.toOwnedSlice(); |
