diff options
Diffstat (limited to 'core/themes/acme.zig')
| -rw-r--r-- | core/themes/acme.zig | 67 |
1 files changed, 36 insertions, 31 deletions
diff --git a/core/themes/acme.zig b/core/themes/acme.zig index 34d99805..030874fc 100644 --- a/core/themes/acme.zig +++ b/core/themes/acme.zig @@ -1,10 +1,16 @@ //! acme's yellow page — the light theme, and the one that has to resolve -//! `palette` itself. A theme that only dresses the page can leave a child's +//! `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 @@ -24,41 +30,40 @@ //! (draw.h's DMedblue): a navy that reads as ink until you look for it. pub const theme = .{ .name = "acme", - .bg = .{ 0xff, 0xff, 0xea }, - .fg = .{ 0x00, 0x00, 0x00 }, - .sel_bg = .{ 0xee, 0xee, 0x9e }, - .sel_fg = .{ 0x00, 0x00, 0x00 }, - .tag_bg = .{ 0xea, 0xff, 0xff }, - .tag_fg = .{ 0x00, 0x00, 0x00 }, - .tag_name_fg = .{ 0x00, 0x00, 0x99 }, - .box = .{ 0x88, 0x88, 0xcc }, - .box_dim = .{ 0xea, 0xff, 0xff }, - .kw = .{ 0x97, 0x0d, 0xae }, - .str = .{ 0x00, 0x77, 0x33 }, - .num = .{ 0xa0, 0x52, 0x00 }, + .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 }, - .lineno = .{ 0x99, 0x99, 0x80 }, - .scroll_track = .{ 0x99, 0x99, 0x4c }, - .scroll_thumb = .{ 0xff, 0xff, 0xea }, + .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_col = .{ 0xff, 0xff, 0xff }, - .border = .{ 0x00, 0x00, 0x00 }, + .empty_column = .{ 0xff, 0xff, 0xff }, + .rule = .{ 0x00, 0x00, 0x00 }, .tag_rule = .{ 0x88, 0x88, 0xcc }, .rule_px = 2, - .box_border = .{ 0x88, 0x88, 0xcc }, - .box_dirty = .{ 0x00, 0x00, 0x99 }, + .grip_ring = .{ 0x88, 0x88, 0xcc }, + .dirty = .{ 0x00, 0x00, 0x99 }, .rail_px = 12, - .tag_sel_bg = .{ 0x9e, 0xee, 0xee }, - // A reading pane's tag: the page's yellow, a shade down (pick-ui's). - .tag_reading_bg = .{ 0xf3, 0xf0, 0xcc }, - .sweep_bg = .{ .{ 0xee, 0xee, 0x9e }, .{ 0xaa, 0x00, 0x00 }, .{ 0x00, 0x66, 0x00 } }, - .sweep_fg = .{ .{ 0x00, 0x00, 0x00 }, .{ 0xff, 0xff, 0xff }, .{ 0xff, 0xff, 0xff } }, - .column_box = .{ 0x88, 0x88, 0xcc }, - .column_box_dim = .{ 0x88, 0x88, 0xcc }, - .palette = .{ + .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 }, .{ 0x11, 0x88, 0x88 }, .{ 0x55, 0x55, 0x55 }, - .{ 0x88, 0x88, 0x88 }, .{ 0xcc, 0x33, 0x33 }, .{ 0x33, 0xaa, 0x33 }, .{ 0xaa, 0x77, 0x00 }, - .{ 0x33, 0x55, 0xdd }, .{ 0xbb, 0x44, 0xbb }, .{ 0x22, 0xaa, 0xaa }, .{ 0x00, 0x00, 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 }, }, }; |
