notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

app_style.rs (327B)


      1 use egui::{FontFamily, FontId};
      2 
      3 use notedeck::fonts::NamedFontFamily;
      4 
      5 pub static DECK_ICON_SIZE: f32 = 24.0;
      6 
      7 pub fn deck_icon_font_sized(size: f32) -> FontId {
      8     egui::FontId::new(size, emoji_font_family())
      9 }
     10 
     11 pub fn emoji_font_family() -> FontFamily {
     12     egui::FontFamily::Name(NamedFontFamily::Emoji.as_str().into())
     13 }