Implement a basic <Text> component in Cocoa - it's cool because it really just uses the same Component lifecycle. Neat!

This commit is contained in:
Ryan McGrath 2019-05-24 23:32:40 -07:00
parent 22e9628b27
commit e17f05dec5
No known key found for this signature in database
GPG key ID: 811674B62B666830
11 changed files with 205 additions and 42 deletions

View file

@ -336,7 +336,8 @@ pub struct Style {
pub aspect_ratio: Number,
// Appearance-based styles
pub background_color: Color
pub background_color: Color,
pub text_color: Color
}
impl Default for Style {
@ -363,7 +364,8 @@ impl Default for Style {
min_size: Default::default(),
max_size: Default::default(),
aspect_ratio: Default::default(),
background_color: Color::transparent()
background_color: Color::transparent(),
text_color: Color::transparent()
}
}
}