Implement themes::ThemeRegistry::get
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
co-authored by
Max Brunsfeld
parent
ca9862fff1
commit
90b51c3356
@@ -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!({
|
||||
|
||||
Reference in New Issue
Block a user