Workaround for broken nav bar icon colors

This commit is contained in:
arkon 2023-12-16 11:04:33 -05:00
parent e6fe5c827c
commit 3ac68e810d

View file

@ -14,6 +14,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Badge
import androidx.compose.material3.BadgedBox
import androidx.compose.material3.Icon
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.NavigationBarItem
import androidx.compose.material3.NavigationRailItem
@ -277,7 +278,12 @@ object HomeScreen : Screen() {
}
},
) {
Icon(painter = tab.options.icon!!, contentDescription = tab.options.title)
Icon(
painter = tab.options.icon!!,
contentDescription = tab.options.title,
// TODO: https://issuetracker.google.com/u/0/issues/316327367
tint = LocalContentColor.current,
)
}
}