summaryrefslogtreecommitdiff
path: root/android/app/src/main/java/org/terst/doot
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-13 16:50:24 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-16 02:40:56 +0000
commit842f001c601d27952cdd6bd47ed007039b146c86 (patch)
tree3b0c0c1c1c803a2f8b8660afd6f42cb3197eb457 /android/app/src/main/java/org/terst/doot
parent5a8c63b336303a22f1e5f3598a961bc2ac21c7b1 (diff)
fix(widget): floor header text size/weight at NORMAL even when SMALL
Headers (hour labels, section titles) shrinking along with content at the SMALL setting made them too small relative to content. Content still shrinks at SMALL; headers now stay at NORMAL's scale/weight regardless of the selected tier.
Diffstat (limited to 'android/app/src/main/java/org/terst/doot')
-rw-r--r--android/app/src/main/java/org/terst/doot/widget/ui/WidgetTextSize.kt10
1 files changed, 6 insertions, 4 deletions
diff --git a/android/app/src/main/java/org/terst/doot/widget/ui/WidgetTextSize.kt b/android/app/src/main/java/org/terst/doot/widget/ui/WidgetTextSize.kt
index e44b983..1e8ecab 100644
--- a/android/app/src/main/java/org/terst/doot/widget/ui/WidgetTextSize.kt
+++ b/android/app/src/main/java/org/terst/doot/widget/ui/WidgetTextSize.kt
@@ -5,9 +5,11 @@ import androidx.compose.ui.unit.sp
import androidx.glance.text.FontWeight
/**
- * Header and content are independent knobs (currently seeded with the same
- * numbers) so either can be retuned later without affecting the other.
- * SMALL reproduces the widget's original, pre-setting appearance exactly.
+ * Header and content are independent knobs so either can be retuned without
+ * affecting the other. SMALL keeps content at the widget's original,
+ * pre-setting size -- but floors headers at NORMAL's scale/weight, since
+ * chrome text (hour labels, section titles) stays hard to read if it
+ * shrinks along with the content the user is deliberately shrinking.
*/
enum class WidgetTextSize(
val headerScale: Float,
@@ -15,7 +17,7 @@ enum class WidgetTextSize(
val contentScale: Float,
val contentWeightBump: Int
) {
- SMALL(1.0f, 0, 1.0f, 0),
+ SMALL(1.15f, 1, 1.0f, 0),
NORMAL(1.15f, 1, 1.15f, 1),
LARGE(1.3f, 2, 1.3f, 2);