Simplify theming for Rule widget

This commit is contained in:
Héctor Ramón Jiménez 2024-03-05 22:38:27 +01:00
parent 420f49bef5
commit a43afc791e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 132 additions and 164 deletions

View file

@ -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)
}