Increase visibility of selected item background in dark themes

Closes #8419

(cherry picked from commit d41c103a72678211de20bbbad4d7db7f46091b93)
This commit is contained in:
arkon 2022-11-04 09:38:38 -04:00 committed by Jobobby04
parent 3b5248e1ba
commit 86ce940344

View File

@ -22,7 +22,7 @@ import kotlin.math.roundToInt
fun Modifier.selectedBackground(isSelected: Boolean): Modifier = composed {
if (isSelected) {
val alpha = if (isSystemInDarkTheme()) 0.08f else 0.22f
val alpha = if (isSystemInDarkTheme()) 0.16f else 0.22f
background(MaterialTheme.colorScheme.secondary.copy(alpha = alpha))
} else {
this