summaryrefslogtreecommitdiff
path: root/core/colors.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/colors.zig')
-rw-r--r--core/colors.zig7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/colors.zig b/core/colors.zig
index d4abf2b5..6b578f09 100644
--- a/core/colors.zig
+++ b/core/colors.zig
@@ -562,7 +562,7 @@ pub const ChromeTheme = struct {
pub fn fromTheme(th: *const Theme) ChromeTheme {
// The initial chrome is resolved at compile time: contrast takes pow.
- @setEvalBranchQuota(200_000);
+ @setEvalBranchQuota(1_000_000);
const active_bg = focusTint(th);
const active_fg = th.tag_active_fg orelse th.tag_fg;
// A name is always tinted: a theme that names no tint gets one of
@@ -619,6 +619,8 @@ pub const Inks = struct { ground: [3]u8, text: [3]u8, dim: [3]u8, rule: [3]u8 };
pub const Roles = struct {
tag: [4]Inks,
selected: [4]Inks,
+ /// The notice row's (the tagline's ground): its dim words.
+ notice: Inks,
/// Key cells, a level's or a row's key letters, `▶`, `•`, a target's
/// keys: 4.5:1 on every tag ground and on the selection.
key: [3]u8,
@@ -669,6 +671,7 @@ pub const Roles = struct {
inks.* = inksOn(ground, ink);
selected.* = inksOn(selectionOf(th.tag_sel_bg orelse th.sel_bg, ground, inks.text), inks.text);
}
+ r.notice = inksOn(th.tagline_bg orelse th.tag_bg, th.tagline_fg orelse th.tag_fg);
const tag_grounds = [_][3]u8{ plain, focused, reading, r.selected[0].ground, r.selected[1].ground, r.selected[2].ground, r.selected[3].ground };
r.key = pushAway(th.box, &tag_grounds, ink_floor);
r.match = pushAway(matchHue(th), &tag_grounds, ink_floor);
@@ -1547,7 +1550,7 @@ test "every theme's walk UI roles meet their floors on every ground they are dra
const body_ink = th.fg orelse th.tag_fg;
const tags = [_][3]u8{ r.tag[0].ground, r.tag[1].ground, r.tag[2].ground, r.selected[0].ground, r.selected[1].ground, r.selected[2].ground, r.selected[3].ground };
const messages = [_][3]u8{ r.tag[0].ground, r.tag[1].ground, r.tag[2].ground, page };
- for (r.tag ++ r.selected) |inks| {
+ for (r.tag ++ r.selected ++ [1]Inks{r.notice}) |inks| {
const text = contrast(inks.text, inks.ground);
try checks.append(a, .{ .what = "text", .got = text, .floor = @min(Roles.text_floor, Reach.of(&.{inks.ground})) });
try checks.append(a, .{ .what = "dim", .got = contrast(inks.dim, inks.ground), .floor = @min(Roles.dim_floor, text) });