make some attributes match css names better

This commit is contained in:
Rowan 2024-04-08 18:26:08 -04:00
parent ca257d9e01
commit cfe11d3777

View file

@ -196,10 +196,10 @@ pub fn set_attribute(
("text_multiline_alignment", "right") if text.is_some() => { ("text_multiline_alignment", "right") if text.is_some() => {
text.unwrap().justify = JustifyText::Right; text.unwrap().justify = JustifyText::Right;
} }
("text_size", value) if text.is_some() => { ("font_size", value) if text.is_some() => {
text.unwrap().sections[0].style.font_size = parse_f32(value); text.unwrap().sections[0].style.font_size = parse_f32(value);
} }
("text_color", value) if text.is_some() => { ("color", value) if text.is_some() => {
text.unwrap().sections[0].style.color = parse_color(value); text.unwrap().sections[0].style.color = parse_color(value);
} }
("image_asset_path", value) if image.is_some() => { ("image_asset_path", value) if image.is_some() => {