https://kotlinlang.org logo
#glance
Title
k

Konstantin Klassen

06/06/2023, 3:40 PM
Hi! Playing around with Glance beta: The color I get from
Copy code
.background(GlanceTheme.colors.background)
.appWidgetBackground()
is not the same I get from google widgets, like gmail, stocks or battery, could that be?
I tried all surface variants and background, nothing matches
k

Kimon

06/06/2023, 5:52 PM
Are you trying to use dynamic colors?
k

Konstantin Klassen

06/06/2023, 7:08 PM
Tbh I expected glance to use dynamic colors by default 😅
b

bbade_

06/06/2023, 8:05 PM
The google widgets use an internal version of material 3 that has a widget-background token that's not public, unfortunately
It's something we're aware of
And I'd like to have this not be the case eventually, but don't have an estimate about when we can expose the token
k

Konstantin Klassen

06/06/2023, 8:34 PM
Thanks for the response 👍. I agree, if something like dynamic colors is provided by the platform, every consumer should use the same set 😕
3 Views