Is there any equivalent `androidx.compose.material...
# compose
t
Is there any equivalent
androidx.compose.material.MaterialTheme.colors.isLight
in
androidx.compose.material3.MaterialTheme.colorScheme
?
đź‘€ 1
o
I haven’t used M3 yet, but couldn’t you use this method?
Copy code
androidx.compose.foundation.isSystemInDarkTheme
t
But if I wrap a composable with MaterialTheme and provide a dark color, that method does not work as I expect.
o
Hm, in such case I think you should create your own
Local
🤔
s
You could check the background color (not sure how m3 calls it) luminance