summaryrefslogtreecommitdiff
path: root/android/app/src/test/java/org/terst/doot
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-14 07:22:55 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-16 02:43:18 +0000
commitf5dfa7a4261e2fa2674e26f43622bef4c3dacdba (patch)
tree7d20df002f510713e78957347b81222d60f05630 /android/app/src/test/java/org/terst/doot
parent12e966bbb2a17cdd613dfff839383fa92f4d10f2 (diff)
fix(widget): scale content font sizes down 5% across all text-size tiers
Diffstat (limited to 'android/app/src/test/java/org/terst/doot')
-rw-r--r--android/app/src/test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt12
1 files changed, 6 insertions, 6 deletions
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))
}