Skip to content

Commit

Permalink
Rebase again :)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorstrate committed Dec 21, 2024
1 parent 151f5bc commit 89171c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions masonry/src/widget/zstack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ impl Widget for ZStack {
// --- MARK: TESTS ---
#[cfg(test)]
mod tests {
use vello::peniko::color::palette;
use vello::peniko::Color;

use super::*;
Expand All @@ -380,14 +381,14 @@ mod tests {
SizedBox::new(Label::new("Background"))
.width(200.)
.height(100.)
.background(Color::BLUE)
.border(Color::TEAL, 2.),
.background(palette::css::BLUE)
.border(palette::css::TEAL, 2.),
ChildAlignment::ParentAligned,
)
.with_child(
SizedBox::new(Label::new("Foreground"))
.background(Color::RED)
.border(Color::PINK, 2.),
.background(palette::css::RED)
.border(palette::css::PINK, 2.),
ChildAlignment::ParentAligned,
);

Expand Down
2 changes: 1 addition & 1 deletion xilem/examples/http_cats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl Status {
)
.padding(4.)
.rounded(4.)
.background(Color::BLACK.multiply_alpha(0.5)),
.background(palette::css::BLACK.multiply_alpha(0.5)),
)
.padding((30., 42., 0., 0.))
.alignment(Alignment::TopTrailing),
Expand Down

0 comments on commit 89171c4

Please sign in to comment.