fix: alpha rendering of status bar
This commit is contained in:
parent
76ad218729
commit
62a4ec1400
11 changed files with 44 additions and 11 deletions
|
@ -43,9 +43,12 @@ fn is_overlay_mode() bool {
|
|||
pub fn render(_: *void, self: *Button.State(void), theme: *const Widget.Theme) bool {
|
||||
const style_base = theme.statusbar;
|
||||
const style_label = if (self.active) theme.editor_cursor else if (self.hover) theme.editor_selection else theme.statusbar_hover;
|
||||
self.plane.set_base_style(style_base);
|
||||
self.plane.set_base_style(theme.editor);
|
||||
self.plane.erase();
|
||||
self.plane.home();
|
||||
self.plane.set_style(style_base);
|
||||
_ = self.plane.fill_width(" ", .{}) catch {};
|
||||
self.plane.home();
|
||||
self.plane.set_style(style_label);
|
||||
_ = self.plane.fill_width(" ", .{}) catch {};
|
||||
self.plane.home();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue