jugando
This commit is contained in:
1 parent
cfd5cda0b2
commit
fe42092556
1 file changed
+3
-3
+3
-3
@@ -165,9 +165,9 @@ impl Client {
|
||||
|
||||
let switch_button = |color, to, label| {
|
||||
let rect = rect(color)
|
||||
.id_on(Sense::click(), move |id, ctx: &mut Client, _| {
|
||||
ctx.ui[main].inner.set_static(to);
|
||||
ctx.ui[id].color = color.darker(0.3);
|
||||
.id_on(Sense::click(), move |id, ui: &mut Ui, _| {
|
||||
ui[main].inner.set_static(to);
|
||||
ui[id].color = color.darker(0.3);
|
||||
})
|
||||
.edit_on(Sense::HoverStart | Sense::unclick(), move |r, _| {
|
||||
r.color = color.brighter(0.2);
|
||||
|
||||
Reference in new issue
Block a user