uzor 1.1.6

Core UI engine — geometry, interaction, input state
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::style::{DefaultToastStyle, ToastStyle};
use super::theme::{DefaultToastTheme, ToastTheme};

pub struct ToastSettings {
    pub theme: Box<dyn ToastTheme>,
    pub style: Box<dyn ToastStyle>,
}

impl Default for ToastSettings {
    fn default() -> Self {
        Self {
            theme: Box::<DefaultToastTheme>::default(),
            style: Box::new(DefaultToastStyle),
        }
    }
}