Add Renderer::Defaults and style inheritance

This commit is contained in:
Héctor Ramón Jiménez 2019-12-30 12:14:26 +01:00
parent 89a6b8a9a1
commit 8caa66be27
32 changed files with 224 additions and 150 deletions

27
wgpu/src/defaults.rs Normal file
View file

@ -0,0 +1,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,
}
}
}