4

During theme's migration process I stuck with opacity's token in Material Design 3. I didn't find any in androidx.compose.material3.

I'm looking for something like construction below I was used with Material Design 2

modifier = Modifier.alpha(if (isSelected) ContentAlpha.high else ContentAlpha.medium)

Could you explain, how to control opacity with theme's tokens in Material Design 3? Thanks.

Sergei Bubenshchikov
  • 5,275
  • 3
  • 33
  • 60

0 Answers0