mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-12 00:28:20 -04:00
Change default ContrastLevel from STANDARD to MEDIUM (#5325)
Co-authored-by: James Rich <james.a.rich@gmail.com>
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user