1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//! gpuikit
//!
//! A comprehensive UI component library for GPUI applications.
//!
//! # Quick Start
//!
//! ```ignore
//! use gpui::Application;
//! use gpuikit::init;
//!
//! fn main() {
//! Application::new()
//! .with_assets(gpuikit::assets())
//! .run(|cx| {
//! init(cx);
//! // ... your app code
//! });
//! }
//! ```
//!
//! # Feature Flags
//!
//! - `editor` - Enables the editor component with syntax highlighting support
use App;
use RustEmbed;
// Core modules
// Feature-gated editor module
pub use Icons as DefaultIcons;
/// Embedded assets for gpuikit (icons, fonts, etc.)
;
/// Returns the gpuikit asset source for use with `Application::new().with_assets()`.
///
/// # Example
/// ```ignore
/// Application::new()
/// .with_assets(gpuikit::assets())
/// .run(|cx| {
/// gpuikit::init(cx);
/// // ...
/// });
/// ```
/// Initialize gpuikit - sets up themes and global state.
///
/// This must be called as soon as possible after your `gpui::Application` is created.
/// Make sure to also call `.with_assets(gpuikit::Assets)` on your Application.
///
/// # Panics
/// Calling a gpuikit component before initialization will panic.