This commit is contained in:
2026-10-30 13:50:00 +07:00
parent 51137b1467
commit f23c582c16
13 changed files with 607 additions and 22 deletions
+5 -8
View File
@@ -1,24 +1,21 @@
//! 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
#[allow(unused_imports)]
pub use gpui_native_core::*;
#[cfg(feature = "data")]
pub use gpui_native_data as data;
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.
/// 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);
}