From cfe11d3777efeae537d02e4521870c691fc2f2a5 Mon Sep 17 00:00:00 2001 From: kitsunecafe Date: Mon, 8 Apr 2024 18:26:08 -0400 Subject: [PATCH] make some attributes match css names better --- src/parse_attributes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse_attributes.rs b/src/parse_attributes.rs index f717d68..7690412 100644 --- a/src/parse_attributes.rs +++ b/src/parse_attributes.rs @@ -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() => {