add list
This commit is contained in:
+5
-8
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user