Skip to content

Commit ced764f

Browse files
committed
Shows "increment" with halo
1 parent 47f4fc0 commit ced764f

File tree

10 files changed

+119451
-94851
lines changed

10 files changed

+119451
-94851
lines changed

logs/libapp-demangle.S

Lines changed: 3538 additions & 1386 deletions
Large diffs are not rendered by default.

logs/libapp-expanded.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,10 @@ mod hello {
690690
|data: &u32, _env|
691691
(*data).into());
692692
let label = Label::new(text);
693-
let button =
694-
Button::<u32>::new("increment", |_ctx, data, _env| *data += 1);
693+
let button = Button::new("increment", |_ctx, data, _env| *data += 1);
695694
let mut col = Column::new();
696-
col.add_child(label, 1.0);
695+
col.add_child(Align::centered(Padding::new(5.0, label)), 1.0);
696+
col.add_child(Padding::new(5.0, button), 1.0);
697697
col
698698
}
699699
}

logs/libapp.S

Lines changed: 3508 additions & 1356 deletions
Large diffs are not rendered by default.

logs/libapp.elf

Lines changed: 10642 additions & 7551 deletions
Large diffs are not rendered by default.

logs/libapp.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

logs/my_sensor_app.elf.lst

Lines changed: 74826 additions & 70983 deletions
Large diffs are not rendered by default.

logs/my_sensor_app.elf.map

Lines changed: 7443 additions & 6929 deletions
Large diffs are not rendered by default.

logs/rustlib-demangle.S

Lines changed: 9684 additions & 3259 deletions
Large diffs are not rendered by default.

logs/rustlib.S

Lines changed: 9803 additions & 3378 deletions
Large diffs are not rendered by default.

rust/app/src/hello.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,16 @@ fn ui_builder() -> impl Widget<u32> { // `u32` is the window state
3939
// Create a label widget to display the text
4040
let label = Label::new(text);
4141
// Create a button widget to increment the counter
42-
let button = Button::<u32>::new( ////
43-
////let button = Button::new(
42+
// let button = Button::<u32>::new( ////
43+
let button = Button::new(
4444
"increment",
4545
|_ctx, data, _env| *data += 1
4646
);
4747

4848
// Create a column for the UI
4949
let mut col = Column::new();
5050
// Add the label and button widgets to the column
51-
col.add_child(label, 1.0); ////
52-
/*
51+
// col.add_child(label, 1.0); ////
5352
col.add_child(
5453
Align::centered(
5554
Padding::new(5.0, label)
@@ -60,6 +59,5 @@ fn ui_builder() -> impl Widget<u32> { // `u32` is the window state
6059
Padding::new(5.0, button),
6160
1.0
6261
);
63-
*/
6462
col
6563
}

0 commit comments

Comments
 (0)