Actually get it compiling, omg

This commit is contained in:
Mikayla 2023-08-18 19:02:27 -07:00
parent 3178adefde
commit 2d37128693
No known key found for this signature in database
6 changed files with 131 additions and 41 deletions

View file

@ -72,7 +72,7 @@ impl View for TestView {
TextStyle::for_color(Color::blue()),
)
.with_style(ButtonStyle::fill(Color::yellow()))
.element(),
.c_element(),
)
.with_child(
ToggleableButton::new(self.is_doubling, move |_, v: &mut Self, cx| {
@ -84,7 +84,7 @@ impl View for TestView {
inactive: ButtonStyle::fill(Color::red()),
active: ButtonStyle::fill(Color::green()),
})
.element(),
.c_element(),
)
.expanded()
.contained()