Move implementations from example to libcosmic

This commit is contained in:
Jeremy Soller 2022-09-30 09:35:55 -06:00
parent 699e474427
commit 5ad54bd3b1
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
13 changed files with 162 additions and 122 deletions

View file

@ -0,0 +1,14 @@
pub use iced;
pub mod font;
pub mod widget;
pub fn settings<Flags: Default>() -> iced::Settings<Flags> {
let mut settings = iced::Settings::default();
settings.default_font = match font::FONT {
iced::Font::Default => None,
iced::Font::External { bytes, .. } => Some(bytes),
};
settings.default_text_size = 18;
settings
}