Skip to content

Commit

Permalink
Fix compilation of color_pallete example
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jan 23, 2025
1 parent eb356b1 commit bc0b489
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/color_pallete/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ fn create_color_display(
})
.style(|s| s.width(50).font_size(18)),
empty().style(move |s| {
s.background(Color::rgb(
red.get() as f64,
green.get() as f64,
blue.get() as f64,
))
.size(310, 75)
s.background(Color::new([red.get(), green.get(), blue.get(), 1.0]))
.size(310, 75)
}),
)
.style(|s| s.flex_col().gap(10))
Expand Down

0 comments on commit bc0b489

Please sign in to comment.