use crate::{theme::color, tokens::ColorRole};
use gpui_kit::{AnyElement, App, BoxShadow, Hsla, IntoElement, Styled, Window, div, px};
use std::rc::Rc;
pub(super) type Handler = Rc<dyn Fn(&mut Window, &mut App)>;
pub(super) fn float_shadow(y: f32) -> Vec<BoxShadow> {
vec![BoxShadow::new(px(0.), px(y), color(ColorRole::Shadow)).blur_radius(px(6.))]
}
pub(super) fn inset_frame(c: Hsla) -> AnyElement {
div()
.absolute()
.top_0()
.left_0()
.right_0()
.bottom_0()
.border_1()
.border_color(c)
.into_any_element()
}
pub mod chrome;
pub mod controls;
pub use chrome::{
BarAction, DockTab, Leading, ListRow, MobileAppBar, MobileListSection, MobileSheet,
MobileTabDock, PhoneFrame, RowKind, home_indicator, in_phone_screen, screen_bottom_radius,
};
pub use controls::{
ControlPill, FloatingActionButton, FloatingWorkingControl, LoadingStrip, MobileNotice,
NoticeTone, Revealed, SplitButton, SplitKind, SwipeAction, SwipeRow, SwipeTone,
};