//! GPUI components that feel native to the operating system. //! //! A thin facade: depend on `gpui-native-core` (and later siblings) directly //! for a lean build, or on this crate for everything behind features. pub use gpui_native_icons as icons; pub use gpui_native_theme as theme; #[cfg(feature = "core")] #[allow(unused_imports)] // empty until the first component lands pub use gpui_native_core::*; use gpui::App; /// Initializes the framework: installs the theme global from the current /// system appearance and, with the `core` feature, the component globals /// and keybindings. Call once before opening windows. pub fn init(cx: &mut App) { #[cfg(feature = "core")] gpui_native_core::init(cx); #[cfg(not(feature = "core"))] theme::Theme::init(cx); }