Simplify theming for Rule widget
This commit is contained in:
parent
420f49bef5
commit
a43afc791e
5 changed files with 132 additions and 164 deletions
|
|
@ -324,7 +324,7 @@ pub fn vertical_space() -> Space {
|
|||
/// [`Rule`]: crate::Rule
|
||||
pub fn horizontal_rule<Theme>(height: impl Into<Pixels>) -> Rule<Theme>
|
||||
where
|
||||
Theme: rule::StyleSheet,
|
||||
Theme: rule::Style,
|
||||
{
|
||||
Rule::horizontal(height)
|
||||
}
|
||||
|
|
@ -334,7 +334,7 @@ where
|
|||
/// [`Rule`]: crate::Rule
|
||||
pub fn vertical_rule<Theme>(width: impl Into<Pixels>) -> Rule<Theme>
|
||||
where
|
||||
Theme: rule::StyleSheet,
|
||||
Theme: rule::Style,
|
||||
{
|
||||
Rule::vertical(width)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue