summaryrefslogtreecommitdiffstats
path: root/wgpu/src/defaults.rs
blob: 8de8258bea078363f6c528fcfc0c821ba7c89761 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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,
        }
    }
}