Add Shadow to container::Appearance
This commit is contained in:
parent
e736038d5f
commit
bf375587aa
4 changed files with 11 additions and 6 deletions
|
|
@ -392,15 +392,14 @@ where
|
|||
};
|
||||
|
||||
if styling.background.is_some()
|
||||
|| styling.shadow.color.a > 0.0
|
||||
|| styling.border.width > 0.0
|
||||
|| styling.shadow.color.a > 0.0
|
||||
{
|
||||
renderer.fill_quad(
|
||||
renderer::Quad {
|
||||
bounds,
|
||||
border: styling.border,
|
||||
shadow: styling.shadow,
|
||||
..renderer::Quad::default()
|
||||
},
|
||||
styling
|
||||
.background
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue