feat(widget): add divider::vertical variants
This commit is contained in:
parent
6e1f00295b
commit
87e7567b7b
1 changed files with 23 additions and 0 deletions
|
|
@ -69,6 +69,29 @@ pub mod divider {
|
||||||
horizontal_rule(10).style(crate::theme::Rule::HeavyDivider)
|
horizontal_rule(10).style(crate::theme::Rule::HeavyDivider)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Vertical variant of a divider.
|
||||||
|
pub mod vertical {
|
||||||
|
use iced::widget::{vertical_rule, Rule};
|
||||||
|
|
||||||
|
/// Vertical divider with default thickness
|
||||||
|
#[must_use]
|
||||||
|
pub fn default() -> Rule<crate::Renderer> {
|
||||||
|
vertical_rule(1).style(crate::theme::Rule::Default)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Vertical divider with light thickness
|
||||||
|
#[must_use]
|
||||||
|
pub fn light() -> Rule<crate::Renderer> {
|
||||||
|
vertical_rule(4).style(crate::theme::Rule::LightDivider)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Vertical divider with heavy thickness.
|
||||||
|
#[must_use]
|
||||||
|
pub fn heavy() -> Rule<crate::Renderer> {
|
||||||
|
vertical_rule(10).style(crate::theme::Rule::HeavyDivider)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod flex_row;
|
pub mod flex_row;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue