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 for Background { Background::Color(color) } } + +impl From for Option { + fn from(color: Color) -> Self { + Some(Background::from(color)) + } +} \ No newline at end of file