2026-11-24 17:28:23 +02:00
|
|
|
//! Shared presentation for the egui clients.
|
|
|
|
|
pub mod about;
|
|
|
|
|
pub mod client;
|
|
|
|
|
pub mod devices;
|
|
|
|
|
mod exit;
|
|
|
|
|
pub mod format;
|
|
|
|
|
pub mod home;
|
|
|
|
|
pub mod listeners;
|
2026-11-25 15:38:10 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
|
mod presentation_tests;
|
2026-11-24 17:28:23 +02:00
|
|
|
pub mod stats;
|
|
|
|
|
mod table;
|
|
|
|
|
pub mod vip;
|
|
|
|
|
mod vip_status;
|
2026-11-25 15:38:10 +02:00
|
|
|
pub mod widgets;
|
2026-11-24 17:28:23 +02:00
|
|
|
|
2026-11-25 14:33:50 +02:00
|
|
|
/// Install the Phosphor icons and bold network title face for both egui clients.
|
2026-11-24 17:28:23 +02:00
|
|
|
pub fn app_fonts() -> egui::FontDefinitions {
|
|
|
|
|
let mut fonts = egui::FontDefinitions::default();
|
|
|
|
|
egui_phosphor::add_to_fonts(&mut fonts, egui_phosphor::Variant::Regular);
|
2026-11-25 14:33:50 +02:00
|
|
|
let mut bold = fonts.families[&egui::FontFamily::Proportional].clone();
|
|
|
|
|
bold.insert(0, "Source Sans Pro Bold".into());
|
|
|
|
|
fonts.font_data.insert(
|
|
|
|
|
"Source Sans Pro Bold".into(),
|
|
|
|
|
egui::FontData::from_static(include_bytes!("../fonts/SourceSansPro-Bold.ttf")).into(),
|
|
|
|
|
);
|
|
|
|
|
fonts
|
|
|
|
|
.families
|
|
|
|
|
.insert(egui::FontFamily::Name("Bold".into()), bold);
|
2026-11-24 17:28:23 +02:00
|
|
|
fonts
|
|
|
|
|
}
|