feat: unify theme system #7

Merged
reya merged 14 commits from unify-theme into master 2026-11-16 12:58:35 +00:00
Showing only changes of commit 03648469ec - Show all commits
+4 -4
View File
@@ -10,8 +10,8 @@ const LADDER: [Rung; 11] = [
(24.0, 32.0, FontWeight::SEMIBOLD),
(20.0, 28.0, FontWeight::SEMIBOLD),
(18.0, 24.0, FontWeight::SEMIBOLD),
(16.0, 24.0, FontWeight::BOLD),
(14.0, 20.0, FontWeight::BOLD),
(16.0, 24.0, FontWeight::SEMIBOLD),
(14.0, 20.0, FontWeight::SEMIBOLD),
(16.0, 24.0, FontWeight::NORMAL),
(14.0, 20.0, FontWeight::NORMAL),
(14.0, 20.0, FontWeight::NORMAL),
@@ -160,8 +160,8 @@ mod tests {
(TextRole::LargeTitle, 24.0, 32.0, FontWeight::SEMIBOLD),
(TextRole::Title, 20.0, 28.0, FontWeight::SEMIBOLD),
(TextRole::Title2, 18.0, 24.0, FontWeight::SEMIBOLD),
(TextRole::Title3, 16.0, 24.0, FontWeight::BOLD),
(TextRole::Headline, 14.0, 20.0, FontWeight::BOLD),
(TextRole::Title3, 16.0, 24.0, FontWeight::SEMIBOLD),
(TextRole::Headline, 14.0, 20.0, FontWeight::SEMIBOLD),
(TextRole::Body, 16.0, 24.0, FontWeight::NORMAL),
(TextRole::Callout, 14.0, 20.0, FontWeight::NORMAL),
(TextRole::Subheadline, 14.0, 20.0, FontWeight::NORMAL),