From 2914bc6ff6441d246cba1ddbbc5d010f2da18102 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Sat, 2 May 2026 04:29:47 -0700 Subject: [PATCH] Change default ContrastLevel from STANDARD to MEDIUM (#5325) Co-authored-by: James Rich --- .../kotlin/org/meshtastic/core/ui/theme/ContrastLevel.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/ui/src/commonMain/kotlin/org/meshtastic/core/ui/theme/ContrastLevel.kt b/core/ui/src/commonMain/kotlin/org/meshtastic/core/ui/theme/ContrastLevel.kt index d933e8a1b..9abb6719a 100644 --- a/core/ui/src/commonMain/kotlin/org/meshtastic/core/ui/theme/ContrastLevel.kt +++ b/core/ui/src/commonMain/kotlin/org/meshtastic/core/ui/theme/ContrastLevel.kt @@ -32,7 +32,7 @@ enum class ContrastLevel(val value: Int) { ; companion object { - fun fromValue(value: Int): ContrastLevel = entries.firstOrNull { it.value == value } ?: STANDARD + fun fromValue(value: Int): ContrastLevel = entries.firstOrNull { it.value == value } ?: MEDIUM } } @@ -41,4 +41,5 @@ enum class ContrastLevel(val value: Int) { * * Read by components that need to adapt their rendering for accessibility (e.g. message bubbles, signal indicators). */ -val LocalContrastLevel = staticCompositionLocalOf { ContrastLevel.STANDARD } +@Suppress("CompositionLocalAllowlist") +val LocalContrastLevel = staticCompositionLocalOf { ContrastLevel.MEDIUM }