ZIm/crates/ui2/src/components
Marshall Bowers 137e4e9251
Add .visible_on_hover helper method (#3639)
This PR adds a `.visible_on_hover` helper method that can be used to
make an element only visible on hover.

I noticed we were repeating this similar stanza in a bunch of different
spots:

```rs
some_element
    .invisible()
    .group_hover("", |style| style.visible())
``` 

so it seemed like a nice thing to factor out into a reusable utility.

Release Notes:

- N/A
2023-12-13 19:12:20 -05:00
..
button 🚧 Feedback modal UI 🚧 (#3536) 2023-12-08 13:30:42 -05:00
label Factor out LabelLike to share common label styles (#3510) 2023-12-06 11:17:12 -05:00
list Add .visible_on_hover helper method (#3639) 2023-12-13 19:12:20 -05:00
stories Rework ListItem and ListHeader to use slot-based APIs (#3635) 2023-12-13 16:08:31 -05:00
avatar.rs Finish fixing up Avatar using URI 2023-12-12 11:49:04 -05:00
button.rs Add support for optional icon to Button (#3479) 2023-12-01 14:30:38 -05:00
checkbox.rs ui2: Reference theme2 and settings2 crates without the 2 (#3424) 2023-11-28 15:30:29 -05:00
context_menu.rs Rework ListItem and ListHeader to use slot-based APIs (#3635) 2023-12-13 16:08:31 -05:00
disclosure.rs Style collab panel (#3638) 2023-12-13 18:20:04 -05:00
divider.rs ui2: Unsuppress and fix warnings (#3423) 2023-11-28 14:44:19 -05:00
icon.rs Merge branch 'main' into project_search2 2023-12-11 16:47:48 +01:00
indicator.rs Update tabs rendering, fix tab spacing bug 2023-12-05 14:04:12 -05:00
keybinding.rs Remove when_else 2023-12-07 12:37:07 -05:00
label.rs Factor out LabelLike to share common label styles (#3510) 2023-12-06 11:17:12 -05:00
list.rs Rework ListHeader to be more open (#3467) 2023-11-30 15:55:31 -05:00
popover.rs ui2: Reference theme2 and settings2 crates without the 2 (#3424) 2023-11-28 15:30:29 -05:00
popover_menu.rs Flesh out a popover control 2023-11-30 16:13:44 -07:00
right_click_menu.rs Add back semi-funcitonal pane resizing code 2023-12-08 16:29:42 -08:00
stack.rs WIP 2023-11-20 14:46:01 -08:00
stories.rs Extract TabBar component (#3613) 2023-12-12 15:50:05 -05:00
tab.rs Add .visible_on_hover helper method (#3639) 2023-12-13 19:12:20 -05:00
tab_bar.rs Scroll the tab bar to show the active tab 2023-12-12 15:42:33 -08:00
tooltip.rs Add gap between label and keybinding in Tooltip 2023-12-06 15:45:03 -05:00