clean up buttons

This commit is contained in:
2025-08-15 16:22:28 -04:00
parent 78ea738b8e
commit 9f1802f497
2 changed files with 63 additions and 39 deletions

View File

@@ -29,7 +29,7 @@ pub trait WidgetSenseFn<W: Widget<Ctx>, Ctx> = Fn(&WidgetId<W>, &mut Ui<Ctx>, &m
pub trait Sensable<W: Widget<Ctx>, Ctx: 'static, Tag> {
// copied here so LSP can at least get the UI and id
fn sense<F: Fn(&WidgetId<W>, &mut Ui<Ctx>, &mut Ctx) + 'static + Clone>(
fn sense<F: WidgetSenseFn<W, Ctx> + Clone>(
self,
sense: Sense,
f: F,