iced_tiny_skia/
settings.rsuse crate::core::{Font, Pixels};
use crate::graphics;
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Settings {
pub default_font: Font,
pub default_text_size: Pixels,
}
impl Default for Settings {
fn default() -> Settings {
Settings {
default_font: Font::default(),
default_text_size: Pixels(16.0),
}
}
}
impl From<graphics::Settings> for Settings {
fn from(settings: graphics::Settings) -> Self {
Self {
default_font: settings.default_font,
default_text_size: settings.default_text_size,
}
}
}