fonts and glowup

This commit is contained in:
2025-07-10 00:25:42 +02:00
parent 5fa8b88373
commit 7e97532442
15 changed files with 252 additions and 54 deletions

View File

@@ -1,6 +1,12 @@
use crate::Polygon;
use iced::Color;
use kira::sound::static_sound::StaticSoundData;
use regex::Regex;
pub fn is_delta_format_valid(str: &str) -> bool {
let re = Regex::new(r"^\d{1,2}:\d{1,2}:\d{1,2}$").unwrap();
re.is_match(str)
}
pub fn string_to_color<S: AsRef<str>>(s: S) -> Color {
match s.as_ref() {
"Green" => Color::from_rgb(0.0, 1.0, 0.0),