mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-26 00:48:44 -06:00
apply bg image
This commit is contained in:
parent
1fc63cf070
commit
3731f19380
|
@ -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)
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue