mod colors; mod event; mod focusable; mod icon; mod root; mod styled; mod svg_img; mod time; pub mod animation; 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; pub mod drawer; pub mod dropdown; 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 popover; pub mod popup_menu; pub mod prelude; pub mod progress; pub mod radio; pub mod resizable; pub mod scroll; pub mod skeleton; pub mod slider; pub mod switch; pub mod tab; pub mod table; pub mod theme; pub mod tooltip; pub mod webview; // re-export pub use wry; pub use crate::Disableable; pub use event::InteractiveElementExt; pub use focusable::FocusableCycle; pub use root::{ContextModal, Root}; pub use styled::*; pub use time::*; pub use colors::*; pub use icon::*; pub use svg_img::*; /// Initialize the UI module. pub fn init(cx: &mut gpui::AppContext) { input::init(cx); list::init(cx); dropdown::init(cx); date_picker::init(cx); popover::init(cx); popup_menu::init(cx); context_menu::init(cx); table::init(cx); webview::init(cx) } rust_i18n::i18n!("locales", fallback = "en"); use std::ops::Deref; pub fn locale() -> impl Deref { rust_i18n::locale() } pub fn set_locale(locale: &str) { rust_i18n::set_locale(locale) }