parent
4030326a35
commit
9b778006ce
@ -56,10 +56,7 @@ pub(crate) fn background(
|
||||
bounds: Rectangle,
|
||||
style: &container::Style,
|
||||
) -> Option<Primitive> {
|
||||
if style.background.is_none() && style.border_width > 0 {
|
||||
return None;
|
||||
}
|
||||
|
||||
if style.background.is_some() || style.border_width > 0 {
|
||||
Some(Primitive::Quad {
|
||||
bounds,
|
||||
background: style
|
||||
@ -69,4 +66,7 @@ pub(crate) fn background(
|
||||
border_width: style.border_width,
|
||||
border_color: style.border_color,
|
||||
})
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user