feat(widget): add divider::horizontal::default() variant
This commit is contained in:
parent
4564c36c83
commit
6e1f00295b
1 changed files with 6 additions and 0 deletions
|
|
@ -51,6 +51,12 @@ pub mod divider {
|
||||||
pub mod horizontal {
|
pub mod horizontal {
|
||||||
use iced::widget::{horizontal_rule, Rule};
|
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
|
/// Horizontal divider with light thickness
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn light() -> Rule<crate::Renderer> {
|
pub fn light() -> Rule<crate::Renderer> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue