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, DefiniteLength, Div, Element, ElementId,
 6    InteractiveElement, ParentElement, Pixels, Rems, RenderOnce, SharedString, Styled, ViewContext,
 7    WindowContext,
 8};
 9
10pub use crate::clickable::*;
11pub use crate::disableable::*;
12pub use crate::fixed::*;
13pub use crate::selectable::*;
14pub use crate::styles::{rems_from_px, vh, vw, PlatformStyle, StyledTypography, TextSize};
15pub use crate::visible_on_hover::*;
16pub use crate::Spacing;
17pub use crate::{h_flex, v_flex};
18pub use crate::{Button, ButtonSize, ButtonStyle, IconButton, SelectableButton};
19pub use crate::{ButtonCommon, Color, StyledExt};
20pub use crate::{Headline, HeadlineSize};
21pub use crate::{Icon, IconName, IconPosition, IconSize};
22pub use crate::{Label, LabelCommon, LabelSize, LineHeightStyle};
23pub use theme::ActiveTheme;