apply bg image

This commit is contained in:
griffi-gh 2024-03-07 01:12:39 +01:00
parent 806e0ce8d1
commit 7d2cf87201

View file

@ -326,7 +326,7 @@ impl UiElement for Container {
position, position,
size: ctx.measure.size, size: ctx.measure.size,
color: corner_colors, color: corner_colors,
texture: None, texture: self.background_image,
rounded_corners: (self.corner_radius.max_f32() > 0.).then_some({ rounded_corners: (self.corner_radius.max_f32() > 0.).then_some({
RoundedCorners::from_radius(self.corner_radius) RoundedCorners::from_radius(self.corner_radius)
}), }),