summaryrefslogtreecommitdiff
path: root/core/themes/dark.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 22:03:14 -0300
committerGabriel Schneider <[email protected]>2026-11-18 22:23:51 -0300
commit99f5b10eccd95aa0066ea6fe6bb75f367ab56a47 (patch)
tree813596ea84318a7bae4fd7416ba463de8e3b7107 /core/themes/dark.zig
parent92d553123673376adf6126ab90d49a22c5b833d2 (diff)
downloadpardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.tar.gz
pardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.zip
core: src/ becomes core/, pardes.zig its root.zig (the reorganisation's tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/themes/dark.zig')
-rw-r--r--core/themes/dark.zig34
1 files changed, 34 insertions, 0 deletions
diff --git a/core/themes/dark.zig b/core/themes/dark.zig
new file mode 100644
index 00000000..e93fd489
--- /dev/null
+++ b/core/themes/dark.zig
@@ -0,0 +1,34 @@
+//! pardes's own dark theme, and the boot default until the helix capture
+//! displaced it. It stays in the ring because it is the only one that leaves
+//! `bg`/`fg` NULL: the page keeps the host terminal's own default cell, so
+//! pardes sits inside whatever the surrounding terminal already looks like and
+//! only paints its chrome. Every other theme here dresses the whole page.
+//!
+//! The selection pair is the warm tan pardes used to paint EVERY theme's
+//! selection with, back when those six numbers were module constants. This is
+//! the theme it belongs to: a null page is the host terminal's, and a tan that
+//! reads as keyboard-driven on whatever dark cell that turns out to be is
+//! exactly what it was picked for.
+pub const theme = .{
+ .name = "dark",
+ .bg = null,
+ .fg = null,
+ .sel_bg = .{ 0x51, 0x3c, 0x17 },
+ .sel_fg = .{ 0xd8, 0xc8, 0xa8 },
+ .tag_bg = .{ 0x2c, 0x2a, 0x3e },
+ .tag_fg = .{ 0x96, 0x96, 0x96 },
+ // The focused tag: its band lighter in its own hue (1.54:1 off the
+ // plain one), its ink lighter to keep reading on it.
+ .tag_active_bg = .{ 0x48, 0x45, 0x66 },
+ .tag_active_fg = .{ 0xc8, 0xc8, 0xc8 },
+ .box = .{ 0x66, 0x3f, 0xe0 },
+ .box_dim = .{ 0x35, 0x3a, 0x58 },
+ .kw = .{ 0xda, 0x5e, 0xea },
+ .str = .{ 0x85, 0xc3, 0x6f },
+ .num = .{ 0xe1, 0xcb, 0x5f },
+ .comment = .{ 0xf0, 0xf0, 0xf0 },
+ .lineno = .{ 0x5a, 0x5a, 0x5a },
+ .scroll_track = .{ 0x2a, 0x2a, 0x2a },
+ .scroll_thumb = .{ 0x52, 0x52, 0x52 },
+ .palette = null,
+};