summaryrefslogtreecommitdiff
path: root/core/draw.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/draw.zig')
-rw-r--r--core/draw.zig9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/draw.zig b/core/draw.zig
index 7f178bfb..e90535b5 100644
--- a/core/draw.zig
+++ b/core/draw.zig
@@ -842,8 +842,8 @@ fn renderHeaderLayer(p: *Pardes, layer: *pardes.Layer, kind: TagKind, id: u16, v
var col = panes.File.rawDisplayCol(p.settings.tab, shown, @max(swept.lo, start) - start) -| scroll;
const stop = panes.File.rawDisplayCol(p.settings.tab, shown, @min(swept.hi, end) - start) -| scroll;
while (col < stop and col < columns) : (col += 1) {
- surface.at(@intCast(col), 0).style.bg = .{ .rgb = body_layer.buttonTints(p.theme())[button] };
- surface.at(@intCast(col), 0).style.fg = .{ .rgb = body_layer.buttonInks(p.theme())[button] };
+ surface.at(@intCast(col), 0).style.bg = .{ .rgb = p.chrome().sweeps[button].ground };
+ surface.at(@intCast(col), 0).style.fg = .{ .rgb = p.chrome().sweeps[button].text };
}
}
} else |_| {};
@@ -1221,12 +1221,11 @@ fn paintPaneTag(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane,
body_layer.paintPointerSelection(p, s, pane, r, sel, 0, preview_bg, null);
};
}
- const sel_btn = body_layer.buttonTints(th);
- const sel_ink = body_layer.buttonInks(th);
+ const sweeps = &p.chrome().sweeps;
for (pane.sel, 0..) |selection, button| {
if (selection.state == .none or (selection.state == .done and button != 0)) continue;
if (button == pardes.sel_slot or @min(selection.r0, selection.r1) >= rows) continue;
- body_layer.paintPointerSelection(p, s, pane, r, selection, 0, sel_btn[button], sel_ink[button]);
+ body_layer.paintPointerSelection(p, s, pane, r, selection, 0, sweeps[button].ground, sweeps[button].text);
}
}