summaryrefslogblamecommitdiffstats
path: root/wgpu/src/defaults.rs
blob: 8de8258bea078363f6c528fcfc0c821ba7c89761 (plain) (tree)


























                                  
use iced_native::Color;

#[derive(Debug, Clone, Copy)]
pub struct Defaults {
    pub text: Text,
}

impl Default for Defaults {
    fn default() -> Defaults {
        Defaults {
            text: Text::default(),
        }
    }
}

#[derive(Debug, Clone, Copy)]
pub struct Text {
    pub color: Color,
}

impl Default for Text {
    fn default() -> Text {
        Text {
            color: Color::BLACK,
        }
    }
}