Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T03:35:52.684Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

visible_on_hover.rs

18 lines · 638 B · rust
1use gpui::{InteractiveElement, SharedString, Styled};
2
3/// A trait for elements that can be made visible on hover by
4/// tracking a specific group.
5pub trait VisibleOnHover {
6    /// Sets the element to only be visible when the specified group is hovered.
7    ///
8    /// Pass `""` as the `group_name` to use the global group.
9    fn visible_on_hover(self, group_name: impl Into<SharedString>) -> Self;
10}
11
12impl<E: InteractiveElement + Styled> VisibleOnHover for E {
13    fn visible_on_hover(self, group_name: impl Into<SharedString>) -> Self {
14        self.invisible()
15            .group_hover(group_name, |style| style.visible())
16    }
17}
18
Served at tenant.openagents/omega Member data and write actions are omitted.