Note: You shouldn't use the `unstable.ui_density` setting – it is only being added for testing and to enable new UI components to be built with density in mind. Don't expect this to work well, or at all right now. Adds some of the basic wiring we'll need to start scaling UI elements throughout the app based on a desired density setting. Release Notes: - N/A
24 lines
954 B
Rust
24 lines
954 B
Rust
//! The prelude of this crate. When building UI in Zed you almost always want to import this.
|
|
|
|
pub use gpui::prelude::*;
|
|
pub use gpui::{
|
|
div, px, relative, rems, AbsoluteLength, DefiniteLength, Div, Element, ElementId,
|
|
InteractiveElement, ParentElement, Pixels, Rems, RenderOnce, SharedString, Styled, ViewContext,
|
|
WindowContext,
|
|
};
|
|
|
|
pub use crate::clickable::*;
|
|
pub use crate::disableable::*;
|
|
pub use crate::fixed::*;
|
|
pub use crate::selectable::*;
|
|
pub use crate::styles::{rems_from_px, vh, vw, PlatformStyle, StyledTypography};
|
|
pub use crate::visible_on_hover::*;
|
|
pub use crate::Spacing;
|
|
pub use crate::{h_flex, v_flex};
|
|
pub use crate::{Button, ButtonSize, ButtonStyle, IconButton, SelectableButton};
|
|
pub use crate::{ButtonCommon, Color, StyledExt};
|
|
pub use crate::{Headline, HeadlineSize};
|
|
pub use crate::{Icon, IconName, IconPosition, IconSize};
|
|
pub use crate::{Label, LabelCommon, LabelSize, LineHeightStyle};
|
|
pub use theme::ActiveTheme;
|