refactor: remove unused parameter in set_base_style

This commit is contained in:
CJ van den Berg 2024-11-04 22:17:08 +01:00
parent 0a43fa853f
commit cfb9f8cf11
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
25 changed files with 28 additions and 28 deletions

View file

@ -29,7 +29,7 @@ pub fn Options(context: type) type {
pub fn do_nothing(_: *context, _: *State(Context)) void {}
pub fn on_render_default(_: *context, self: *State(Context), theme: *const Widget.Theme) bool {
self.plane.set_base_style(" ", if (self.active) theme.scrollbar_active else if (self.hover) theme.scrollbar_hover else theme.scrollbar);
self.plane.set_base_style(if (self.active) theme.scrollbar_active else if (self.hover) theme.scrollbar_hover else theme.scrollbar);
self.plane.erase();
self.plane.home();
_ = self.plane.print(" {s} ", .{self.opts.label}) catch {};