Change default ContrastLevel from STANDARD to MEDIUM (#5325)

Co-authored-by: James Rich <james.a.rich@gmail.com>
This commit is contained in:
Andrew Smith
2026-05-02 04:29:47 -07:00
committed by GitHub
parent a6b524d4c1
commit 2914bc6ff6

View File

@@ -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 }