Add weak styling for rule

This commit is contained in:
Héctor Ramón Jiménez 2025-08-02 20:52:17 +02:00
parent 3d7306844b
commit 83a7a50d8b
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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,
}
}