summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/background.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/background.rs b/core/src/background.rs
index e1a37ddc..54a9cad2 100644
--- a/core/src/background.rs
+++ b/core/src/background.rs
@@ -13,3 +13,9 @@ impl From<Color> for Background {
Background::Color(color)
}
}
+
+impl From<Color> for Option<Background> {
+ fn from(color: Color) -> Self {
+ Some(Background::from(color))
+ }
+} \ No newline at end of file