diff options
author | 2023-01-23 16:57:24 +0100 | |
---|---|---|
committer | 2023-01-23 16:57:24 +0100 | |
commit | 7d2d813343baae10c2667590463385d50abb784c (patch) | |
tree | dd52002abbc0fe0df683a0413616892e79ea0676 /native/src/widget/scrollable.rs | |
parent | eb4fcba05fb54741289a28ec9b921c90c9acc7fd (diff) | |
download | iced-7d2d813343baae10c2667590463385d50abb784c.tar.gz iced-7d2d813343baae10c2667590463385d50abb784c.tar.bz2 iced-7d2d813343baae10c2667590463385d50abb784c.zip |
added new style for scrollable, to be applied when mouse is over the scrollable area
Diffstat (limited to '')
-rw-r--r-- | native/src/widget/scrollable.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs index 82286036..de6eacb5 100644 --- a/native/src/widget/scrollable.rs +++ b/native/src/widget/scrollable.rs @@ -856,6 +856,8 @@ pub fn draw<Renderer>( theme.dragging(style) } else if mouse_over_y_scrollbar { theme.hovered(style) + } else if mouse_over_scrollable { + theme.focused(style) } else { theme.active(style) }; @@ -869,6 +871,8 @@ pub fn draw<Renderer>( theme.dragging_horizontal(style) } else if mouse_over_x_scrollbar { theme.hovered_horizontal(style) + } else if mouse_over_scrollable { + theme.focused_horizontal(style) } else { theme.active_horizontal(style) }; |