abuse macros..

This commit is contained in:
iris committed 2025-12-20 00:26:08 -05:00
1 parent bae17235c6
commit fabc7d0b90
12 files changed
+125 -45

No files matched your search

+2 -4
View File
@@ -64,7 +64,7 @@ impl DefaultAppState for Client {
.on(CursorSense::click(), move |ctx| {
let child = image(include_bytes!("assets/sungals.png"))
.center()
.add(ctx.state);
.add(ctx);
(span_add.r)(ctx).children.push(child);
})
.sized((150, 150))
@@ -119,9 +119,7 @@ impl DefaultAppState for Client {
.text_align(Align::LEFT)
.wrap(true)
.attr::<Selectable>(());
let msg_box = text
.background(rect(Color::WHITE.darker(0.5)))
.add(ctx.state);
let msg_box = text.background(rect(Color::WHITE.darker(0.5))).add(ctx);
(texts.r)(ctx).children.push(msg_box);
})
.handles(&mut rsc);