summaryrefslogtreecommitdiff
path: root/test/column_drag.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/column_drag.zig')
-rw-r--r--test/column_drag.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/column_drag.zig b/test/column_drag.zig
index 31d4366d..35ae07fd 100644
--- a/test/column_drag.zig
+++ b/test/column_drag.zig
@@ -178,8 +178,8 @@ test "column grips stay blank, and muted across focus and hover until grabbed" {
if (dragging) mouse(p, .press, x);
_ = frame.reset(.retain_capacity);
const surface = try p.render(frame.allocator());
- const muted: pardes.Color = .{ .rgb = p.chromeTheme().column_box_dim };
- const lit: pardes.Color = .{ .rgb = p.chromeTheme().column_box };
+ const muted: pardes.Color = .{ .rgb = p.chrome().grip.column_rest };
+ const lit: pardes.Color = .{ .rgb = p.chrome().grip.column };
for (0..p.view().ncol) |column| {
for (0..config.GUTTER) |offset| {
const cell = surface.at(p.view().col_x[column] + @as(u16, @intCast(offset)), pardes.TOPBAR_H);
@@ -253,7 +253,7 @@ test "column grip drag lands where it is carried, lighting no word on the way" {
_ = try p.render(frame.allocator());
// The pointer is over the first column's "New", but a carried column
// aims at a place: no word lights under it.
- for (0..p.view().screen_w) |x| try std.testing.expect(!std.meta.eql(p.surface.at(@intCast(x), pardes.TOPBAR_H).style.bg, pardes.Color{ .rgb = p.theme().sel_bg }));
+ for (0..p.view().screen_w) |x| try std.testing.expect(!std.meta.eql(p.surface.at(@intCast(x), pardes.TOPBAR_H).style.bg, pardes.Color{ .rgb = p.chrome().page.selection.secondary }));
mouse(p, .release, 3);
try std.testing.expectEqual(serials[1], p.view().cols[0].serial);
try std.testing.expectEqual(serials[0], p.view().cols[1].serial);