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:
parent
22e9628b27
commit
e17f05dec5
11 changed files with 205 additions and 42 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue