From f5dfa7a4261e2fa2674e26f43622bef4c3dacdba Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 14 Jul 2026 07:22:55 +0000 Subject: fix(widget): scale content font sizes down 5% across all text-size tiers --- .../test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'android/app/src/test/java/org/terst/doot') diff --git a/android/app/src/test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt b/android/app/src/test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt index 7f3bcfc..643a2e3 100644 --- a/android/app/src/test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt +++ b/android/app/src/test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt @@ -7,8 +7,8 @@ import org.junit.Test class WidgetTextSizeTest { @Test - fun `SMALL keeps content at base size and weight, unchanged`() { - assertEquals(14f, WidgetTextSize.SMALL.scaledContentSize(14).value, 0.001f) + fun `SMALL scales content by 0_95x and keeps weight unchanged`() { + assertEquals(13.3f, WidgetTextSize.SMALL.scaledContentSize(14).value, 0.001f) assertEquals(FontWeight.Normal, WidgetTextSize.SMALL.scaledContentWeight(FontWeight.Normal)) } @@ -19,15 +19,15 @@ class WidgetTextSizeTest { } @Test - fun `NORMAL scales size by 1_15x and bumps weight one step`() { - assertEquals(16.1f, WidgetTextSize.NORMAL.scaledContentSize(14).value, 0.001f) + fun `NORMAL scales content by 1_0925x and bumps weight one step`() { + assertEquals(15.295f, WidgetTextSize.NORMAL.scaledContentSize(14).value, 0.001f) assertEquals(FontWeight.Medium, WidgetTextSize.NORMAL.scaledContentWeight(FontWeight.Normal)) assertEquals(FontWeight.Bold, WidgetTextSize.NORMAL.scaledHeaderWeight(FontWeight.Medium)) } @Test - fun `LARGE scales size by 1_3x and bumps weight two steps`() { - assertEquals(18.2f, WidgetTextSize.LARGE.scaledContentSize(14).value, 0.001f) + fun `LARGE scales content by 1_235x and bumps weight two steps`() { + assertEquals(17.29f, WidgetTextSize.LARGE.scaledContentSize(14).value, 0.001f) assertEquals(FontWeight.Bold, WidgetTextSize.LARGE.scaledContentWeight(FontWeight.Normal)) } -- cgit v1.2.3