From bc386b21f0292fb0e4a4c1e5a851097e0e6966c1 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 8 Aug 2024 15:22:21 +0200 Subject: [PATCH] fix: reset transparent styles to avoid zebra effect on home screen --- src/tui/home.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tui/home.zig b/src/tui/home.zig index 8ff6184..d8ac0d6 100644 --- a/src/tui/home.zig +++ b/src/tui/home.zig @@ -157,6 +157,7 @@ pub fn render(self: *Self, theme: *const Widget.Theme) bool { self.plane.set_style_bg_transparent(style_subtext); self.plane.cursor_move_yx(7, 6) catch return false; _ = self.plane.print(subtext, .{}) catch {}; + self.plane.set_style(theme.editor); self.menu.resize(.{ .y = 9, .x = 8, .w = 32 }); } else { @@ -167,6 +168,7 @@ pub fn render(self: *Self, theme: *const Widget.Theme) bool { self.plane.set_style_bg_transparent(style_subtext); self.plane.cursor_move_yx(3, 6) catch return false; _ = self.plane.print(subtext, .{}) catch {}; + self.plane.set_style(theme.editor); const x = @min(self.plane.dim_x() -| 32, 8); self.menu.resize(.{ .y = 5, .x = x, .w = 32 });