feat: adopt the native OS theme (#66)

Reviewed-on: reya/coop#66
This commit is contained in:
2026-10-23 04:07:11 +00:00
parent f44f0704f3
commit 30da985ac1
257 changed files with 5490 additions and 12236 deletions
+10 -47
View File
@@ -1,50 +1,13 @@
pub(crate) use gpui_base::{ElementExt, InteractiveElementExt};
pub use icon::*;
pub use root::Root;
pub use styled::*;
pub use title_bar::{TRAFFIC_LIGHT_PADDING, title_bar_drag_handlers};
pub use window_ext::*;
pub use avatar::Avatar;
pub use form::*;
pub use icon::IconName;
pub use message::*;
pub use text::*;
pub use window_drag::title_bar_drag_handlers;
pub mod avatar;
pub mod button;
pub mod dialog;
pub mod dock;
pub mod group_box;
pub mod indicator;
pub mod input;
pub mod markdown;
pub mod menu;
pub mod form;
pub mod icon;
pub mod message;
pub mod nav;
pub mod nav_item;
pub mod notification;
pub mod scroll;
pub mod switch;
pub mod tab;
pub mod tooltip;
mod icon;
mod kbd;
pub mod motion;
mod popover;
mod resizable;
mod root;
mod styled;
mod title_bar;
mod window_ext;
/// Initialize the UI module.
///
/// This must be called before using any of the UI components.
/// You can initialize the UI module at your application's entry point.
pub fn init(cx: &mut gpui::App) {
gpui_base::init(cx);
#[cfg(not(target_os = "macos"))]
cx.bind_keys([gpui::KeyBinding::new(
"shift-insert",
gpui_base::input::Paste,
Some("Input"),
)]);
theme::sync_base(cx);
menu::init(cx);
}
pub mod text;
pub mod window_drag;