first commit

This commit is contained in:
2026-08-20 22:22:27 +08:00
commit b2b863366f
27 changed files with 203 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct FontSize(pub f32);
impl FontSize {
pub const SMALL: Self = Self(12);
pub const NORMAL: Self = Self(14);
pub const MEDIUM: Self = Self(16);
pub const LARGE: Self = Self(24);
pub const X_LARGE: Self = Self(30);
pub fn as_f32(&self) -> f32 {
self.0
}
}