Skip to content

Commit

Permalink
pass shadows to the buttons used in the compositor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Feb 8, 2025
1 parent d18d32a commit 36f8fd5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crates/core/src/render/compositor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ mod test {
cross_align: "center",
direction: "horizontal",
Button {
theme: theme_with!(ButtonTheme {
shadow: "0 4 5 0 rgb(0, 0, 0, 0.1)".into(),
}),
onclick: move |_| rotate += 1,
label { "Rotate" }
}
Expand Down Expand Up @@ -651,6 +654,9 @@ mod test {
cross_align: "center",
direction: "horizontal",
Button {
theme: theme_with!(ButtonTheme {
shadow: "0 4 5 0 rgb(0, 0, 0, 0.1)".into(),
}),
onclick: move |_| rotate += 1,
label { "Rotate" }
}
Expand Down Expand Up @@ -704,10 +710,16 @@ mod test {
cross_align: "center",
direction: "horizontal",
Button {
theme: theme_with!(ButtonTheme {
shadow: "0 4 5 0 rgb(0, 0, 0, 0.1)".into(),
}),
onclick: move |_| scale += 0.1,
label { "More" }
}
Button {
theme: theme_with!(ButtonTheme {
shadow: "0 4 5 0 rgb(0, 0, 0, 0.1)".into(),
}),
onclick: move |_| scale -= 0.1,
label { "Less" }
}
Expand Down

0 comments on commit 36f8fd5

Please sign in to comment.