Files
gpui-native-kit/src/lib.rs
T

25 lines
545 B
Rust

//! GPUI components that feel native to the operating system.
//!
pub use gpui_native_icons as icons;
pub use gpui_native_theme as theme;
#[cfg(feature = "core")]
#[allow(unused_imports)]
pub use gpui_native_core::*;
#[cfg(feature = "data")]
pub use gpui_native_data as data;
#[cfg(feature = "layout")]
pub use gpui_native_layout as layout;
use gpui::App;
/// Initializes the framework.
pub fn init(cx: &mut App) {
#[cfg(feature = "core")]
gpui_native_core::init(cx);
#[cfg(not(feature = "core"))]
theme::Theme::init(cx);
}