zed/crates/ui2/src/lib.rs

52 lines
1.5 KiB
Rust
Raw Normal View History

2023-10-23 14:21:30 +00:00
//! # UI Zed UI Primitives & Components
//!
//! This crate provides a set of UI primitives and components that are used to build all of the elements in Zed's UI.
//!
//! ## Work in Progress
//!
//! This crate is still a work in progress. The initial primitives and components are built for getting all the UI on the screen,
//! much of the state and functionality is mocked or hard codeded, and performance has not been a focus.
//!
//! Expect some inconsistencies from component to component as we work out the best way to build these components.
//!
//! ## Getting Started
//!
//! - [ThemeColor](crate::color::ThemeColor) is your one stop shop for all colors in the UI.
//!
2023-10-23 14:21:30 +00:00
//! ## Design Philosophy
//!
//! Work in Progress!
//!
#![allow(dead_code, unused_variables)]
2023-10-06 20:52:05 +00:00
mod color;
mod components;
mod element_ext;
mod elements;
pub mod prelude;
2023-10-23 09:34:35 +00:00
pub mod settings;
2023-10-06 21:47:10 +00:00
mod static_data;
mod theme;
2023-10-06 20:52:05 +00:00
pub use components::*;
pub use element_ext::*;
pub use elements::*;
pub use prelude::*;
2023-10-06 21:47:10 +00:00
pub use static_data::*;
// This needs to be fully qualified with `crate::` otherwise we get a panic
// at:
2023-10-21 14:01:47 +00:00
// thread '<unnamed>' panicked at crates/gpui2/src/platform/mac/platform.rs:66:81:
// called `Option::unwrap()` on a `None` value
//
// AFAICT this is something to do with conflicting names between crates and modules that
// interfaces with declaring the `ClassDecl`.
pub use crate::settings::*;
pub use crate::theme::*;
#[cfg(feature = "stories")]
mod story;
#[cfg(feature = "stories")]
pub use story::*;