fix: alpha rendering of status bar
This commit is contained in:
parent
76ad218729
commit
62a4ec1400
11 changed files with 44 additions and 11 deletions
|
@ -69,9 +69,12 @@ pub fn render(self: *Self, theme: *const Widget.Theme) bool {
|
|||
const style_normal = theme.statusbar;
|
||||
const style_info: Widget.Theme.Style = .{ .fg = theme.statusbar.fg, .fs = theme.editor_information.fs };
|
||||
const style_error: Widget.Theme.Style = .{ .fg = theme.editor_error.fg, .fs = theme.editor_error.fs };
|
||||
self.plane.set_base_style(style_normal);
|
||||
self.plane.set_base_style(theme.editor);
|
||||
self.plane.erase();
|
||||
self.plane.home();
|
||||
self.plane.set_style(style_normal);
|
||||
_ = self.plane.fill_width(" ", .{}) catch {};
|
||||
self.plane.home();
|
||||
self.plane.set_style(if (self.level == .err) style_error else style_info);
|
||||
_ = self.plane.print(" {s} ", .{self.msg.items}) catch {};
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue