diff --git a/widget/src/rule.rs b/widget/src/rule.rs index d847577e..d70109bc 100644 --- a/widget/src/rule.rs +++ b/widget/src/rule.rs @@ -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, + } +}