https://kotlinlang.org logo
#compose
Title
# compose
m

MBegemot

04/24/2020, 7:40 AM
There should be something broke in Material theme, till dev 6 I did not noticed anything weird, but now when I change the theme of the app at runtime very strange things happen, for example I have a list display function that only works well (in the theming sense ) if I surround it by a surface(shape=Rectangle), either if I skip the surface or the shape, the list goes drawn without the changed theme. And there are more quirks and oddities all of them hard to predict or imagine.
a

Andrey Kulikov

04/24/2020, 12:40 PM
what
Surface
is doing: drawing the background on the
surface
color from the
ColorPalette
and changes the default text color for the subtree to
onSurface
from the
ColorPalette
. what other unexpected changes do you see?
l

Leland Richardson [G]

04/24/2020, 1:46 PM
Fwiw this might be related to the bug around ambients in default expressions being broken. This will hopefully be fixed in dev11