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 }