iced
iced copied to clipboard
Container Hovered Style
Hi! Is it correct that the container currently does not have a hovered style? Would you accept a PR?
You are correct, the is not a style for hovering a container. There are a few technical reasons for it
Here is Hecrj's input from the Zulip chat about events for entering a container:
"
However, on_mouse_enter has implementation challenges. What happens if the view changes and a new widget ends up under the mouse cursor? The user would expect the event to trigger, but currently it won't.
"
Still not a no though. PRs are always welcome 😃, just hovered styles for containers might require a large PR
Why not just use a button?
I'm trying to display a list of complex items. Each item is a Row. When the user hovers the row, the background color of the whole row should change. I didn't think this could be implemented with a button, especially since the row will contain buttons itself. Will it be possible to use a button for this? That would be nice
I think this use case should be tackled directly by some kind of Table widget.