Add weak styling for rule
This commit is contained in:
parent
3d7306844b
commit
83a7a50d8b
1 changed files with 12 additions and 0 deletions
|
|
@ -300,3 +300,15 @@ pub fn default(theme: &Theme) -> Style {
|
|||
snap: true,
|
||||
}
|
||||
}
|
||||
|
||||
/// A [`Rule`] styling using the weak background color.
|
||||
pub fn weak(theme: &Theme) -> Style {
|
||||
let palette = theme.extended_palette();
|
||||
|
||||
Style {
|
||||
color: palette.background.weak.color,
|
||||
radius: 0.0.into(),
|
||||
fill_mode: FillMode::Full,
|
||||
snap: true,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue