Compare commits

...

2 Commits

Author SHA1 Message Date
Rowan Vixen 0246e80f93 make elements public 2024-04-08 18:30:53 -04:00
Rowan Vixen cfe11d3777 make some attributes match css names better 2024-04-08 18:30:53 -04:00
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ mod apply_mutations;
pub mod colors;
mod deferred_system;
mod ecs_hooks;
mod elements;
pub mod elements;
#[macro_use]
mod events;
#[cfg(feature = "hot_reload")]

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() => {