Fix ParamButton hover state and styling

This commit is contained in:
Robbert van der Helm
2023-03-18 15:16:52 +01:00
parent 83ea930ab8
commit 0d5247ee2f
5 changed files with 16 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ impl<L: Lens<Target = SafeModeClamper>> SafeModeButton<L> {
scrolled_lines: 0.0,
}
.build(cx, move |cx| {
Label::new(cx, label);
Label::new(cx, label).hoverable(false);
})
.checked(lens.map(|v| v.status()))
// We'll pretend this is a param-button, so this class is used for assigning a unique color