1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
//! acme's yellow page — the light theme, and the one that has to resolve
//! `ansi` itself. A theme that only dresses the page can leave a child's
//! ANSI indices alone and let the host answer them; on #ffffea that is how you
//! get pale yellow `ls` output on pale yellow paper. So the sixteen below are
//! darkened for paper: index 7 (the "white" a shell writes most of its output
//! in) is a mid grey, and 15 (bright white) is BLACK, because a program asking
//! for the brightest color on a light page means "make this stand out".
//! Each of the sixteen reads 4.5:1 on the page (DESIGN.md E1, the native
//! floor): 6 #118888 -> #038384, 8 #888888 -> #757575 and 13 #bb44bb ->
//! #b942b9, each held darker in its hue (R0); 10 #33aa33, 11 #aa7700 and 14
//! #22aaaa held there land on their normal colour, so they go 0.06 darker
//! than it in OKLab, #016e08, #785300 and #017070 (R14: a bright one is
//! darker on a light page, as 15 is black).
//!
//! Every colour below that acme has is acme's own, from plan9port's acme.c
//! iconinit and draw.h: the tag #eaffff and body #ffffea (each 25% of
//! DPalebluegreen or DPaleyellow over white), their selections #9eeeee and
//! #eeee9e with black ink (acme changes the paper under a selection, never
//! the letters), the exec and look sweeps #aa0000 and #006600 with white ink,
//! the scrollbar's #99994c track under a #ffffea thumb, 12px wide, the
//! #8888cc (DPurpleblue) line between a tag and its body and the column
//! button, and 2px black rules between columns, windows and tags.
//!
//! acme has no focus colour; pardes needs one, so the focused pane's button
//! is filled #8888cc (the column button's look) and every other pane's is
//! acme's own: #eaffff in a 2px #8888cc ring, #000099 inside it when dirty.
//!
//! acme tints nothing in a tag; pardes tints the file's name, a +Name and
//! the Term word everywhere, so here it is done quietly, in that same #000099
//! (draw.h's DMedblue): a navy that reads as ink until you look for it.
pub const theme = .{
.name = "acme",
.page = .{ 0xff, 0xff, 0xea },
.text = .{ 0x00, 0x00, 0x00 },
.selection = .{ 0xee, 0xee, 0x9e },
.selection_text = .{ 0x00, 0x00, 0x00 },
.tag = .{ 0xea, 0xff, 0xff },
.tag_text = .{ 0x00, 0x00, 0x00 },
.tag_name = .{ 0x00, 0x00, 0x99 },
.accent = .{ 0x88, 0x88, 0xcc },
.keyword = .{ 0x97, 0x0d, 0xae },
.string = .{ 0x00, 0x77, 0x33 },
.number = .{ 0xa0, 0x52, 0x00 },
.comment = .{ 0x55, 0x55, 0x55 },
.line_number = .{ 0x99, 0x99, 0x80 },
.rail = .{ 0x99, 0x99, 0x4c },
.rail_thumb = .{ 0xff, 0xff, 0xea },
// acme paints a column with no window white (cols.c:187).
.empty_column = .{ 0xff, 0xff, 0xff },
.rule = .{ 0x00, 0x00, 0x00 },
.tag_rule = .{ 0x88, 0x88, 0xcc },
.rule_px = 2,
.grip_ring = .{ 0x88, 0x88, 0xcc },
.dirty = .{ 0x00, 0x00, 0x99 },
.rail_px = 12,
.tag_selection = .{ 0x9e, 0xee, 0xee },
.sweeps = .{
.{ .ground = .{ 0xee, 0xee, 0x9e }, .text = .{ 0x00, 0x00, 0x00 } },
.{ .ground = .{ 0xaa, 0x00, 0x00 }, .text = .{ 0xff, 0xff, 0xff } },
.{ .ground = .{ 0x00, 0x66, 0x00 }, .text = .{ 0xff, 0xff, 0xff } },
},
.column_grip = .{ 0x88, 0x88, 0xcc },
.ansi = .{
.{ 0x00, 0x00, 0x00 }, .{ 0xaa, 0x22, 0x22 }, .{ 0x22, 0x80, 0x22 }, .{ 0x88, 0x66, 0x00 },
.{ 0x22, 0x44, 0xbb }, .{ 0x99, 0x33, 0x99 }, .{ 0x03, 0x83, 0x84 }, .{ 0x55, 0x55, 0x55 },
.{ 0x75, 0x75, 0x75 }, .{ 0xcc, 0x33, 0x33 }, .{ 0x01, 0x6e, 0x08 }, .{ 0x78, 0x53, 0x00 },
.{ 0x33, 0x55, 0xdd }, .{ 0xb9, 0x42, 0xb9 }, .{ 0x01, 0x70, 0x70 }, .{ 0x00, 0x00, 0x00 },
},
};
|