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
|
@ -75,7 +75,7 @@ pub fn on_render_menu(_: *Type, button: *Type.ButtonState, theme: *const Widget.
|
|||
button.plane.home();
|
||||
button.plane.set_style(style_label);
|
||||
if (button.active or button.hover or selected) {
|
||||
_ = button.plane.fill_width(" ", .{}) catch {};
|
||||
button.plane.fill(" ");
|
||||
button.plane.home();
|
||||
}
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ fn on_render_menu(_: *Self, button: *Button.State(*Menu.State(*Self)), theme: *c
|
|||
button.plane.home();
|
||||
button.plane.set_style(style_label);
|
||||
if (button.active or button.hover or selected) {
|
||||
_ = button.plane.fill_width(" ", .{}) catch {};
|
||||
button.plane.fill(" ");
|
||||
button.plane.home();
|
||||
}
|
||||
var file_path: []const u8 = undefined;
|
||||
|
|
|
@ -117,7 +117,7 @@ pub fn Create(options: type) type {
|
|||
button.plane.home();
|
||||
button.plane.set_style(style_label);
|
||||
if (button.active or button.hover or selected) {
|
||||
_ = button.plane.fill_width(" ", .{}) catch {};
|
||||
button.plane.fill(" ");
|
||||
button.plane.home();
|
||||
}
|
||||
var label: []const u8 = undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue