diff --git a/crates/ui/src/button.rs b/crates/ui/src/button.rs
index 2647ccc8..81d72f09 100644
--- a/crates/ui/src/button.rs
+++ b/crates/ui/src/button.rs
@@ -2,15 +2,16 @@ use std::rc::Rc;
use gpui::prelude::FluentBuilder as _;
use gpui::{
- AnyElement, App, ClickEvent, Div, ElementId, Hsla, InteractiveElement, IntoElement,
- ParentElement, RenderOnce, SharedString, Stateful, StatefulInteractiveElement as _,
- StyleRefinement, Styled, Window, div, relative,
+ AnyElement, App, ClickEvent, ElementId, Hsla, InteractiveElement, IntoElement, MouseButton,
+ ParentElement, RenderOnce, SharedString, StatefulInteractiveElement as _, StyleRefinement,
+ Styled, Window, div, relative,
};
+use gpui_base::Button as BaseButton;
use theme::ActiveTheme;
use crate::indicator::Indicator;
use crate::tooltip::Tooltip;
-use crate::{Disableable, Icon, IconName, Selectable, Sizable, Size, StyledExt, h_flex};
+use crate::{Disableable, Icon, IconName, Selectable, Sizable, Size, h_flex};
#[derive(Clone, Copy, PartialEq, Eq)]
pub struct ButtonCustomVariant {
@@ -114,9 +115,7 @@ pub trait ButtonVariants: Sized {
#[derive(IntoElement)]
#[allow(clippy::type_complexity)]
pub struct Button {
- id: ElementId,
- base: Stateful
,
- style: StyleRefinement,
+ base: BaseButton,
icon: Option,
label: Option,
@@ -151,12 +150,8 @@ impl From