iced icon indicating copy to clipboard operation
iced copied to clipboard

Container Hovered Style

Open johannesvollmer opened this issue 4 years ago • 4 comments

Hi! Is it correct that the container currently does not have a hovered style? Would you accept a PR?

johannesvollmer avatar Jul 29 '21 12:07 johannesvollmer

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

13r0ck avatar Jul 30 '21 04:07 13r0ck

Why not just use a button?

90-008 avatar Jul 30 '21 06:07 90-008

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

johannesvollmer avatar Jul 30 '21 08:07 johannesvollmer

I think this use case should be tackled directly by some kind of Table widget.

hecrj avatar Jan 22 '22 06:01 hecrj