make some attributes match css names better
This commit is contained in:
parent
ca257d9e01
commit
cfe11d3777
|
@ -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() => {
|
||||
|
|
Loading…
Reference in a new issue