Move PopoverButton into ui (#25724)

This PR moves the `PopoverButton` component into the `ui` crate.

The `popover_button` crate only depended on `ui`, so there doesn't seem
to be a need for it to live in its own crate and add another step in the
crate graph.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-02-26 21:51:19 -05:00 committed by GitHub
parent 3505a17452
commit da22f21dec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 13 additions and 47 deletions

View file

@ -10,7 +10,9 @@ use gpui::{
use picker::{Picker, PickerDelegate};
use project::{Project, ProjectPath};
use std::sync::Arc;
use ui::{prelude::*, HighlightedLabel, ListItem, ListItemSpacing, PopoverMenuHandle};
use ui::{
prelude::*, HighlightedLabel, ListItem, ListItemSpacing, PopoverMenuHandle, TriggerablePopover,
};
use util::ResultExt;
use workspace::notifications::DetachAndPromptErr;
use workspace::{ModalView, Workspace};
@ -78,7 +80,7 @@ pub struct BranchList {
_subscription: Option<Subscription>,
}
impl popover_button::TriggerablePopover for BranchList {
impl TriggerablePopover for BranchList {
fn menu_handle(
&mut self,
_window: &mut Window,