lib.rs

 1//! # UI – Zed UI Primitives & Components
 2//!
 3//! This crate provides a set of UI primitives and components that are used to build all of the elements in Zed's UI.
 4//!
 5//! ## Work in Progress
 6//!
 7//! This crate is still a work in progress. The initial primitives and components are built for getting all the UI on the screen,
 8//! much of the state and functionality is mocked or hard codeded, and performance has not been a focus.
 9//!
10//! Expect some inconsistencies from component to component as we work out the best way to build these components.
11//!
12//! ## Getting Started
13//!
14//! - [ThemeColor](crate::color::ThemeColor) is your one stop shop for all colors in the UI.
15//!
16//! ## Design Philosophy
17//!
18//! Work in Progress!
19//!
20
21// TODO: Fix warnings instead of supressing.
22#![allow(dead_code, unused_variables)]
23
24mod color;
25mod components;
26mod element_ext;
27mod elements;
28mod elevation;
29pub mod prelude;
30pub mod settings;
31mod static_data;
32mod theme;
33
34pub use components::*;
35pub use element_ext::*;
36pub use elements::*;
37pub use prelude::*;
38pub use static_data::*;
39
40// This needs to be fully qualified with `crate::` otherwise we get a panic
41// at:
42//   thread '<unnamed>' panicked at crates/gpui2/src/platform/mac/platform.rs:66:81:
43//   called `Option::unwrap()` on a `None` value
44//
45// AFAICT this is something to do with conflicting names between crates and modules that
46// interfaces with declaring the `ClassDecl`.
47pub use crate::settings::*;
48pub use crate::theme::*;
49
50#[cfg(feature = "stories")]
51mod story;
52#[cfg(feature = "stories")]
53pub use story::*;