Added scrollable style focused to be displayed when mouse is over the scrollable area#1669
Conversation
hecrj
left a comment
There was a problem hiding this comment.
I think the name should be hovered instead of focused, like in a button::StyleSheet.
The point is that |
|
@hecrj may I ask you what can I do to make this PR ready to be merged? |
|
@GyulyVGC We need a better name here. |
|
You are free to suggest a name of your preference. Hovered would be awesome, but the problem is that it's already used. |
|
I think we could just add a boolean |
Wouldn't this method also require to pass two distinct As an alternative, what about naming it |
No. The |
Following your suggestion, I renamed it to |
|
Amazing! Thanks for the corrections! |
Hi! It's my first PR here for iced!
I added a style
focusedthought to be displayed when the scrollable area is hovered (not the scrollbar itself).In my opinion, this is a more flexible solution to #1573.
In this way, a user can decide to hide the scroller when the area is not hovered or simply to have a different style from the
activecase, which would now be used when the scrollable area is not hovered.If
focusedis not implemented,activewill be used anyway.If you don't like the name "focused", suggestions are welcomed!
Untitled.mp4