Implement themes::ThemeRegistry::get

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-08-03 19:35:15 -06:00
co-authored by Max Brunsfeld
parent ca9862fff1
commit 90b51c3356
2 changed files with 63 additions and 49 deletions
+6
View File
@@ -70,6 +70,12 @@ where
Ok(json.into())
}
pub fn font_properties_from_json(
value: serde_json::Value,
) -> Result<Properties, serde_json::Error> {
Ok(serde_json::from_value::<PropertiesJson>(value)?.into())
}
impl ToJson for Properties {
fn to_json(&self) -> crate::json::Value {
json!({