mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-26 19:08:25 +01:00
Increase visibility of selected item background in dark themes
Closes #8419
This commit is contained in:
parent
0b93b9e059
commit
d41c103a72
@ -22,7 +22,7 @@ import kotlin.math.roundToInt
|
|||||||
|
|
||||||
fun Modifier.selectedBackground(isSelected: Boolean): Modifier = composed {
|
fun Modifier.selectedBackground(isSelected: Boolean): Modifier = composed {
|
||||||
if (isSelected) {
|
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))
|
background(MaterialTheme.colorScheme.secondary.copy(alpha = alpha))
|
||||||
} else {
|
} else {
|
||||||
this
|
this
|
||||||
|
Loading…
Reference in New Issue
Block a user