fix: rendering of minimode separator
This commit is contained in:
parent
beef23703d
commit
af68c397bc
2 changed files with 9 additions and 3 deletions
|
@ -68,9 +68,9 @@ pub fn render(_: *void, self: *Button.State(void), theme: *const Widget.Theme) b
|
|||
}
|
||||
|
||||
fn render_separator(self: *Button.State(void), theme: *const Widget.Theme) void {
|
||||
const statusbar_bg = theme.statusbar.bg orelse theme.editor.bg.?;
|
||||
if (theme.statusbar_hover.bg) |bg| self.plane.set_fg_rgb_alpha(statusbar_bg, bg) catch {};
|
||||
if (theme.statusbar.bg) |bg| self.plane.set_bg_rgb_alpha(statusbar_bg, bg) catch {};
|
||||
self.plane.reverse_style();
|
||||
self.plane.set_base_style(.{ .bg = theme.editor.bg });
|
||||
if (theme.statusbar.bg) |bg| self.plane.set_style(.{ .bg = bg });
|
||||
_ = self.plane.putstr("") catch {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue