#![allow(dead_code)] #![allow(deprecated)] #![allow(clippy::too_many_arguments)]
#![allow(clippy::unnecessary_map_or)]
#![allow(clippy::collapsible_if)]
#![allow(clippy::unnecessary_cast)]
#![allow(clippy::needless_borrows_for_generic_args)]
#![allow(clippy::manual_div_ceil)]
#![allow(clippy::explicit_auto_deref)]
#![allow(clippy::needless_lifetimes)]
#![allow(clippy::let_and_return)]
#![allow(clippy::doc_overindented_list_items)]
#![allow(clippy::manual_range_contains)]
#![allow(clippy::derivable_impls)]
mod atoms;
mod molecules;
pub mod semantics;
mod theme;
#[cfg(feature = "vibrancy")]
pub mod vibrancy;
#[cfg(feature = "vibrancy")]
pub mod titlebar;
pub use atoms::*;
pub use molecules::*;
pub use theme::{LightweightTheme, Theme, ThemeProvider, ThemeVariant};
#[cfg(feature = "serde")]
pub use theme::{ThemeConfig, ThemeLoadError, ThemeSaveError};
const PHOSPHOR_FONT: &[u8] = include_bytes!("../assets/fonts/Phosphor.ttf");
pub fn setup_fonts(ctx: &egui::Context) {
let mut fonts = egui::FontDefinitions::default();
fonts.font_data.insert(
"phosphor".to_owned(),
egui::FontData::from_static(PHOSPHOR_FONT).into(),
);
fonts.families.insert(
egui::FontFamily::Name("icons".into()),
vec!["phosphor".to_owned()],
);
ctx.set_fonts(fonts);
}
#[cfg(feature = "macros")]
pub use egui_cha_macros::cha;
pub mod prelude {
pub use crate::atoms::*;
pub use crate::molecules::*;
pub use crate::semantics::{self, ButtonStyle, LogSeverity, SeverityLog};
pub use crate::theme::{LightweightTheme, Theme, ThemeProvider, ThemeVariant};
#[cfg(feature = "serde")]
pub use crate::theme::{ThemeConfig, ThemeLoadError, ThemeSaveError};
}