Guilherme Delgado
12/22/2022, 3:49 PMsecondaryContainer
is the property used to change active item color. But, apparently, it completely ignores the alpha channel. Any Idea why?
@Composable
fun NavigationBarTheme(content: @Composable () -> Unit) {
MaterialTheme(
colorScheme = lightColorScheme(
secondaryContainer = orange.copy(alpha = 0.3f) //val orange = Color(0xFFFF5704)
),
...
)
}
Landry Norris
12/22/2022, 3:52 PMFilip Wiesner
12/22/2022, 4:03 PMLandry Norris
12/22/2022, 4:04 PMGuilherme Delgado
12/22/2022, 4:04 PMGuilherme Delgado
12/22/2022, 4:05 PMGuilherme Delgado
12/22/2022, 4:06 PMFilip Wiesner
12/22/2022, 4:06 PMLandry Norris
12/22/2022, 4:06 PMGuilherme Delgado
12/22/2022, 4:07 PMGuilherme Delgado
12/22/2022, 4:07 PMGiang
12/22/2022, 4:21 PMorange.copy(alpha = 0.3f).compositeOver(Color.WHITE)