fix setting colors

This commit is contained in:
🪞👃🪞 2025-01-27 22:48:30 +01:00
parent a16e5361d1
commit 0999c42f12
10 changed files with 93 additions and 48 deletions

View file

@ -86,7 +86,7 @@ macro_rules! transform_xy_unit {
let u = iter.next().expect("no unit specified");
let c = iter.next().expect("no content specified");
let u = state.get(&u.value).expect("no unit provided");
let c = state.get_content(&c.value).expect("not content provided");
let c = state.get_content(&c.value).expect("no content provided");
return Some(match k {
$x => Self::x(u, c),
$y => Self::y(u, c),
@ -99,7 +99,7 @@ macro_rules! transform_xy_unit {
let c = iter.next().expect("no content specified");
let u = state.get(&u.value).expect("no unit provided");
let v = state.get(&v.value).expect("no unit provided");
let c = state.get_content(&c.value).expect("not content provided");
let c = state.get_content(&c.value).expect("no content provided");
return Some(Self::xy(u, v, c))
}
}