wip: refactor
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
pub mod animation;
|
||||
pub mod badge;
|
||||
pub mod breadcrumb;
|
||||
pub mod button;
|
||||
pub mod button_group;
|
||||
pub mod checkbox;
|
||||
pub mod clipboard;
|
||||
pub mod color_picker;
|
||||
pub mod context_menu;
|
||||
pub mod divider;
|
||||
pub mod dock;
|
||||
@@ -14,11 +12,9 @@ pub mod history;
|
||||
pub mod indicator;
|
||||
pub mod input;
|
||||
pub mod label;
|
||||
pub mod link;
|
||||
pub mod list;
|
||||
pub mod modal;
|
||||
pub mod notification;
|
||||
pub mod number_input;
|
||||
pub mod popover;
|
||||
pub mod popup_menu;
|
||||
pub mod prelude;
|
||||
@@ -26,7 +22,6 @@ pub mod progress;
|
||||
pub mod radio;
|
||||
pub mod resizable;
|
||||
pub mod scroll;
|
||||
pub mod sidebar;
|
||||
pub mod skeleton;
|
||||
pub mod slider;
|
||||
pub mod switch;
|
||||
@@ -34,7 +29,7 @@ pub mod tab;
|
||||
pub mod theme;
|
||||
pub mod tooltip;
|
||||
|
||||
pub use colors::*;
|
||||
pub use crate::Disableable;
|
||||
pub use event::InteractiveElementExt;
|
||||
pub use focusable::FocusableCycle;
|
||||
pub use icon::*;
|
||||
@@ -43,9 +38,6 @@ pub use styled::*;
|
||||
pub use title_bar::*;
|
||||
pub use window_border::{window_border, WindowBorder};
|
||||
|
||||
pub use crate::Disableable;
|
||||
|
||||
mod colors;
|
||||
mod event;
|
||||
mod focusable;
|
||||
mod icon;
|
||||
@@ -54,12 +46,6 @@ mod styled;
|
||||
mod title_bar;
|
||||
mod window_border;
|
||||
|
||||
use rust_embed::RustEmbed;
|
||||
|
||||
#[derive(RustEmbed)]
|
||||
#[folder = "../../assets"]
|
||||
pub struct Assets;
|
||||
|
||||
/// Initialize the UI module.
|
||||
///
|
||||
/// This must be called before using any of the UI components.
|
||||
@@ -69,7 +55,6 @@ pub fn init(cx: &mut gpui::AppContext) {
|
||||
dock::init(cx);
|
||||
dropdown::init(cx);
|
||||
input::init(cx);
|
||||
number_input::init(cx);
|
||||
list::init(cx);
|
||||
modal::init(cx);
|
||||
popover::init(cx);
|
||||
|
||||
Reference in New Issue
Block a user