You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Composable
fun ColorDesc.localized(): Color = when (this) {
is ColorDescResource -> colorResource(resource)
is ColorDescSingle -> Color(color.argb)
is ColorDescThemed -> when {
isSystemInDarkTheme() -> Color(darkColor.argb)
else -> Color(lightColor.argb)
}
else -> throw NotImplementedError()
}
StringDesc has a localized function, but for some reason ColorDesc does not.
The text was updated successfully, but these errors were encountered: