fix: alpha rendering of status bar
This commit is contained in:
parent
76ad218729
commit
62a4ec1400
11 changed files with 44 additions and 11 deletions
|
@ -45,9 +45,12 @@ pub fn layout(_: *Self) Widget.Layout {
|
|||
pub fn render(self: *Self, theme: *const Widget.Theme) bool {
|
||||
const frame = tracy.initZone(@src(), .{ .name = @typeName(@This()) ++ " render" });
|
||||
defer frame.deinit();
|
||||
self.plane.set_base_style(if (self.hover) theme.statusbar_hover else theme.statusbar);
|
||||
self.plane.set_base_style(theme.editor);
|
||||
self.plane.erase();
|
||||
self.plane.home();
|
||||
self.plane.set_style(if (self.hover) theme.statusbar_hover else theme.statusbar);
|
||||
_ = self.plane.fill_width(" ", .{}) catch {};
|
||||
self.plane.home();
|
||||
|
||||
_ = self.plane.print(" {s}{s}{s} ", .{
|
||||
mode(self.mods.ctrl, "Ⓒ ", "🅒 "),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue