wip: refactor: removing seams
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
same mf who else 2026-03-19 17:22:47 +02:00
parent 4e8d58d793
commit b0fbe3c173
18 changed files with 1724 additions and 1808 deletions

19
src/color.rs Normal file
View file

@ -0,0 +1,19 @@
pub(crate) use ::palette::Okhsl;
pub trait HasColor { fn color (&self) -> ItemColor; }
pub struct ItemColor {}
pub struct ItemTheme {}
#[macro_export] macro_rules! has_color {
(|$self:ident:$Struct:ident$(<$($L:lifetime),*$($T:ident$(:$U:path)?),*>)?|$cb:expr) => {
impl $(<$($L),*$($T $(: $U)?),*>)? HasColor for $Struct $(<$($L),*$($T),*>)? {
fn color (&$self) -> ItemColor { $cb }
}
}
}
pub fn rgb (r: u8, g: u8, b: u8) -> ItemColor {
todo!();
}