diff options
Diffstat (limited to 'core/Command.zig')
| -rw-r--r-- | core/Command.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Command.zig b/core/Command.zig index f41d0639..132ad9e4 100644 --- a/core/Command.zig +++ b/core/Command.zig @@ -842,14 +842,14 @@ test ":theme lists the themes and the whole window wears the current one, none d p.view().active = id; const s = &p.view().tag_state; const own = p.theme(); - const own_chrome = p.chromeTheme().*; + const own_chrome = p.chrome().*; typeKeys(p, ":theme "); try std.testing.expectEqual(Rows.themes, s.prompt.command.rows); try std.testing.expectEqual(@as(u16, @intCast(colors.themes.len)), s.nhits); try std.testing.expect(has(try tagOf(p), try std.fmt.allocPrint(a, " {d} themes ยท the window wears the current one ", .{colors.themes.len}))); // The window wears the first: its colours, its chrome; no pane dimmed. try std.testing.expectEqualStrings(colors.themes[s.hits[0]].name, p.theme().name); - try std.testing.expectEqual(colors.ChromeTheme.fromTheme(p.theme()), p.chromeTheme().*); + try std.testing.expectEqual(colors.Chrome.of(p.theme()), p.chrome().*); try std.testing.expect(s.previewing.isSet(other)); const surface = try p.render(a); const r = p.view().rects[other]; @@ -864,13 +864,13 @@ test ":theme lists the themes and the whole window wears the current one, none d const next = colors.themes[s.hits[1]].name; try std.testing.expectEqualStrings(try std.fmt.allocPrint(a, "theme {s}", .{next}), s.field.text()); try std.testing.expectEqualStrings(next, p.theme().name); - try std.testing.expectEqual(colors.ChromeTheme.fromTheme(p.theme()), p.chromeTheme().*); + try std.testing.expectEqual(colors.Chrome.of(p.theme()), p.chrome().*); // A load meanwhile (dump.afterLoad) works out the session's own chrome, // never the one worn. Esc: the window's own again, nothing set. colors.finishThemeInitialization(p); p.update(.{ .key = .{ .cp = Key.escape } }); try std.testing.expectEqualStrings(own.name, p.theme().name); - try std.testing.expectEqual(own_chrome, p.chromeTheme().*); + try std.testing.expectEqual(own_chrome, p.chrome().*); try std.testing.expect(p.theme_preview == null and !s.previewing.isSet(other)); // Enter keeps the one the window wears. typeKeys(p, ":theme o"); |
