prelude.rs

 1//! The prelude of this crate. When building UI in Zed you almost always want to import this.
 2
 3pub use gpui::prelude::*;
 4pub use gpui::{
 5    div, px, relative, rems, AbsoluteLength, App, Context, DefiniteLength, Div, Element, ElementId,
 6    InteractiveElement, ParentElement, Pixels, Rems, RenderOnce, SharedString, Styled, Window,
 7};
 8
 9pub use crate::styles::{rems_from_px, vh, vw, PlatformStyle, StyledTypography, TextSize};
10pub use crate::traits::clickable::*;
11pub use crate::traits::component_preview::*;
12pub use crate::traits::disableable::*;
13pub use crate::traits::fixed::*;
14pub use crate::traits::styled_ext::*;
15pub use crate::traits::toggleable::*;
16pub use crate::traits::visible_on_hover::*;
17pub use crate::DynamicSpacing;
18pub use crate::{h_flex, h_group, v_flex, v_group};
19pub use crate::{Button, ButtonSize, ButtonStyle, IconButton, SelectableButton};
20pub use crate::{ButtonCommon, Color};
21pub use crate::{Headline, HeadlineSize};
22pub use crate::{Icon, IconName, IconPosition, IconSize};
23pub use crate::{Label, LabelCommon, LabelSize, LineHeightStyle};
24pub use theme::ActiveTheme;