refactor: prefer Plane.fill for blanking with alpha
This commit is contained in:
parent
fa25d250c6
commit
f7ba83fd83
18 changed files with 20 additions and 20 deletions
|
@ -82,11 +82,11 @@ pub fn render(self: *Self, btn: *Button.State(Self), theme: *const Widget.Theme)
|
|||
btn.plane.erase();
|
||||
btn.plane.home();
|
||||
btn.plane.set_style(style_base);
|
||||
_ = btn.plane.fill_width(" ", .{}) catch {};
|
||||
btn.plane.fill(" ");
|
||||
btn.plane.home();
|
||||
btn.plane.set_style(style_label);
|
||||
if (btn.active) {
|
||||
_ = btn.plane.fill_width(" ", .{}) catch {};
|
||||
btn.plane.fill(" ");
|
||||
btn.plane.home();
|
||||
}
|
||||
if (tui.current().mini_mode) |_|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue