pub mod direction;
mod ident;
mod interaction;
pub(crate) mod stepping;
mod styled_ext;
pub use direction::{
ActiveDirection, DirectionalExt, LayoutDirection, LogicalSide, PhysicalSide,
set_layout_direction,
};
pub use ident::Ident;
pub use interaction::{HoverLift, Pressable};
pub use styled_ext::{FocusRing, StyledExt, text};
pub use gpui_kit_theme::{
ActiveTheme, ControlSize, Density, Elevation, Layer, ThemeRegistry, activate_theme, set_density,
};
pub trait Disableable {
fn disabled(self, disabled: bool) -> Self;
}
pub trait Selectable {
fn selected(self, selected: bool) -> Self;
}
pub trait Sizable: Sized {
fn control_size(self, size: ControlSize) -> Self;
fn xs(self) -> Self {
self.control_size(ControlSize::Xs)
}
fn small(self) -> Self {
self.control_size(ControlSize::Sm)
}
fn medium(self) -> Self {
self.control_size(ControlSize::Md)
}
fn large(self) -> Self {
self.control_size(ControlSize::Lg)
}
}