feat(widget): add divider::horizontal::default() variant

This commit is contained in:
Michael Aaron Murphy 2023-09-13 15:33:38 +02:00 committed by Michael Murphy
parent 4564c36c83
commit 6e1f00295b

View file

@ -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<crate::Renderer> {
horizontal_rule(1).style(crate::theme::Rule::Default)
}
/// Horizontal divider with light thickness
#[must_use]
pub fn light() -> Rule<crate::Renderer> {