summaryrefslogtreecommitdiff
path: root/src/themes/acme.zig
blob: d91e626bfdf3266c1c31016002af2bf08b39c8fa (plain) (blame)
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
//! 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 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".
//!
//! The selection is acme's own: plan9's DDarkyellow #eeee9e, the colour acme
//! sweeps text with, and black ink over it — acme changes the paper under a
//! selection and never the letters. Out of the same draw.h palette the
//! scrollbar's #99994c (DYellowgreen) is already taken from.
pub const theme = .{
    .name = "acme",
    .bg = .{ 0xff, 0xff, 0xea },
    .fg = .{ 0x00, 0x00, 0x00 },
    .sel_bg = .{ 0xfa, 0xfa, 0x92 },
    .sel_fg = .{ 0x00, 0x00, 0x00 },
    .tag_bg = .{ 0xea, 0xff, 0xff },
    .tag_fg = .{ 0x00, 0x00, 0x00 },
    .box = .{ 0x66, 0x3f, 0xe0 },
    .box_dim = .{ 0x35, 0x3a, 0x58 },
    .kw = .{ 0x97, 0x0d, 0xae },
    .str = .{ 0x00, 0x77, 0x33 },
    .num = .{ 0xa0, 0x52, 0x00 },
    .comment = .{ 0x55, 0x55, 0x55 },
    .lineno = .{ 0x99, 0x99, 0x80 },
    .scroll_track = .{ 0x99, 0x99, 0x4c },
    .scroll_thumb = .{ 0xff, 0xff, 0xea },
    .palette = .{
        .{ 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 },
    },
};