diff options
Diffstat (limited to 'core/src/background.rs')
-rw-r--r-- | core/src/background.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/background.rs b/core/src/background.rs index 98047172..2f75e45c 100644 --- a/core/src/background.rs +++ b/core/src/background.rs @@ -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) + } +}
\ No newline at end of file |