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

@ -44,7 +44,7 @@ pub fn render(self: *Self, btn: *Button.State(Self), theme: *const Widget.Theme)
btn.plane.erase();
btn.plane.home();
btn.plane.set_style(bg_style);
_ = btn.plane.fill_width(" ", .{}) catch {};
btn.plane.fill(" ");
btn.plane.home();
_ = btn.plane.putstr(self.rendered) catch {};
return false;