diff options
author | 2024-03-05 22:38:27 +0100 | |
---|---|---|
committer | 2024-03-05 22:38:27 +0100 | |
commit | a43afc791e8f78b03d802f980a10f32dc932f0b2 (patch) | |
tree | 9bfc21e139dc5572dfe84734bb3365aeb803a838 /widget/src/helpers.rs | |
parent | 420f49bef5f6938868a84086e729deaa1df9107f (diff) | |
download | iced-a43afc791e8f78b03d802f980a10f32dc932f0b2.tar.gz iced-a43afc791e8f78b03d802f980a10f32dc932f0b2.tar.bz2 iced-a43afc791e8f78b03d802f980a10f32dc932f0b2.zip |
Simplify theming for `Rule` widget
Diffstat (limited to 'widget/src/helpers.rs')
-rw-r--r-- | widget/src/helpers.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs index 01645bc9..33c9f300 100644 --- a/widget/src/helpers.rs +++ b/widget/src/helpers.rs @@ -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) } |