Revert icon color in menus
This commit is contained in:
parent
620e5aa1fb
commit
37c5f66801
2 changed files with 1 additions and 9 deletions
|
@ -28,7 +28,6 @@ import androidx.compose.ui.res.painterResource
|
|||
import androidx.compose.ui.unit.dp
|
||||
import it.vfsfitvnm.vimusic.R
|
||||
import it.vfsfitvnm.vimusic.ui.styling.LocalAppearance
|
||||
import it.vfsfitvnm.vimusic.ui.styling.menuEntryIcon
|
||||
import it.vfsfitvnm.vimusic.utils.medium
|
||||
import it.vfsfitvnm.vimusic.utils.secondary
|
||||
|
||||
|
@ -79,7 +78,7 @@ fun MenuEntry(
|
|||
Image(
|
||||
painter = painterResource(icon),
|
||||
contentDescription = null,
|
||||
colorFilter = ColorFilter.tint(colorPalette.menuEntryIcon),
|
||||
colorFilter = ColorFilter.tint(colorPalette.text),
|
||||
modifier = Modifier
|
||||
.size(15.dp)
|
||||
)
|
||||
|
|
|
@ -133,13 +133,6 @@ inline val ColorPalette.shimmer: Color
|
|||
accent
|
||||
}
|
||||
|
||||
inline val ColorPalette.menuEntryIcon: Color
|
||||
get() = if (this === DefaultDarkColorPalette || this === DefaultLightColorPalette || this == PureBlackColorPalette) {
|
||||
text
|
||||
} else {
|
||||
accent
|
||||
}
|
||||
|
||||
inline val ColorPalette.overlay: Color
|
||||
get() = PureBlackColorPalette.background0.copy(alpha = 0.75f)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue