make some attributes match css names better

This commit is contained in:
Rowan Vixen 2024-04-08 18:26:08 -04:00
parent ca257d9e01
commit cfe11d3777
1 changed files with 2 additions and 2 deletions

View File

@ -196,10 +196,10 @@ pub fn set_attribute(
("text_multiline_alignment", "right") if text.is_some() => {
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_color", value) if text.is_some() => {
("color", value) if text.is_some() => {
text.unwrap().sections[0].style.color = parse_color(value);
}
("image_asset_path", value) if image.is_some() => {