From 6e1f00295bf5a88d617232196b1cb2f62da906cd Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Wed, 13 Sep 2023 15:33:38 +0200 Subject: [PATCH] feat(widget): add `divider::horizontal::default()` variant --- src/widget/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/widget/mod.rs b/src/widget/mod.rs index 0e44cb3b..19517cf1 100644 --- a/src/widget/mod.rs +++ b/src/widget/mod.rs @@ -51,6 +51,12 @@ pub mod divider { pub mod horizontal { use iced::widget::{horizontal_rule, Rule}; + /// Horizontal divider with default thickness + #[must_use] + pub fn default() -> Rule { + horizontal_rule(1).style(crate::theme::Rule::Default) + } + /// Horizontal divider with light thickness #[must_use] pub fn light() -> Rule {