slider animations, ui tweaks

This commit is contained in:
Aleksander
2025-06-28 23:11:37 +02:00
parent 9d0c0f015c
commit 9bbc7b2d22
5 changed files with 133 additions and 21 deletions

View File

@@ -37,6 +37,14 @@ pub fn parse_color(value: &str, color: &mut drawing::Color) {
}
}
pub fn parse_color_opt(value: &str, color: &mut Option<drawing::Color>) {
if let Some(res_color) = parse_color_hex(value) {
*color = Some(res_color);
} else {
print_invalid_value(value);
}
}
pub fn parse_text_style(attribs: &[(Rc<str>, Rc<str>)]) -> TextStyle {
let mut style = TextStyle::default();