Add Shadow to container::Appearance
This commit is contained in:
parent
e736038d5f
commit
bf375587aa
4 changed files with 11 additions and 6 deletions
|
|
@ -21,7 +21,7 @@ use crate::text_editor;
|
|||
use crate::text_input;
|
||||
use crate::toggler;
|
||||
|
||||
use crate::core::{Background, Border, Color, Vector};
|
||||
use crate::core::{Background, Border, Color, Shadow, Vector};
|
||||
|
||||
use std::fmt;
|
||||
use std::rc::Rc;
|
||||
|
|
@ -434,6 +434,7 @@ impl container::StyleSheet for Theme {
|
|||
text_color: None,
|
||||
background: Some(palette.background.weak.color.into()),
|
||||
border: Border::with_radius(2),
|
||||
shadow: Shadow::default(),
|
||||
}
|
||||
}
|
||||
Container::Custom(custom) => custom.appearance(self),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue