use std::borrow::Cow;
use gpui::App;
pub mod combobox;
pub mod control_bar;
pub mod date;
pub mod floating;
pub mod focus;
pub mod hover_card;
pub mod icons;
pub mod input;
pub mod list;
pub mod loaders;
pub mod menubar;
pub mod pagination;
pub mod palette;
pub mod popover;
pub mod scroll;
pub mod stats;
pub mod surface;
pub mod table;
pub mod titlebar;
pub mod tooltip;
pub mod tree;
pub mod widgets;
#[cfg(feature = "geist-sans")]
static FONT_GEIST: &[u8] = include_bytes!("../assets/fonts/Geist.ttf");
#[cfg(feature = "geist-mono")]
static FONT_GEIST_MONO: &[u8] = include_bytes!("../assets/fonts/GeistMono.ttf");
#[cfg(feature = "geist-weights")]
static FONT_GEIST_MEDIUM: &[u8] = include_bytes!("../assets/fonts/Geist-Medium.ttf");
#[cfg(feature = "geist-weights")]
static FONT_GEIST_SEMIBOLD: &[u8] = include_bytes!("../assets/fonts/Geist-SemiBold.ttf");
#[cfg(feature = "geist-weights")]
static FONT_GEIST_BOLD: &[u8] = include_bytes!("../assets/fonts/Geist-Bold.ttf");
pub fn register_fonts(cx: &App) -> gpui::Result<()> {
#[allow(unused_mut, reason = "every face below is behind a feature")]
let mut fonts: Vec<Cow<'static, [u8]>> = Vec::new();
#[cfg(feature = "geist-sans")]
fonts.push(Cow::Borrowed(FONT_GEIST));
#[cfg(feature = "geist-mono")]
fonts.push(Cow::Borrowed(FONT_GEIST_MONO));
#[cfg(feature = "geist-weights")]
fonts.extend([
Cow::Borrowed(FONT_GEIST_MEDIUM),
Cow::Borrowed(FONT_GEIST_SEMIBOLD),
Cow::Borrowed(FONT_GEIST_BOLD),
]);
cx.text_system().add_fonts(fonts)
}