Implemented From<Color for Background
This commit is contained in:
parent
ed045b45ba
commit
33ad332ce9
6 changed files with 26 additions and 20 deletions
|
|
@ -7,3 +7,9 @@ pub enum Background {
|
|||
Color(Color),
|
||||
// TODO: Add gradient and image variants
|
||||
}
|
||||
|
||||
impl From<Color> for Background {
|
||||
fn from(color: Color) -> Self {
|
||||
Background::Color(color)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue