refactor: prefer Plane.fill for blanking with alpha

This commit is contained in:
CJ van den Berg 2024-12-12 19:25:44 +01:00
parent fa25d250c6
commit f7ba83fd83
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
18 changed files with 20 additions and 20 deletions

View file

@ -127,7 +127,7 @@ fn menu_on_render(_: *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();
}
const style_text = if (tui.find_scope_style(theme, "keyword")) |sty| sty.style else style_label;