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