Any reason for M3 AlertDialog to be using ScalingL...
# compose-wear
t
Any reason for M3 AlertDialog to be using ScalingLazyColumn and not TLC ? This leads to very different animations for the items.
y
t
Thanks, seems as always I'm too ahead of times each time I decide to update the Wear app ๐Ÿ™‚
y
It's hard, because early adopters shape the API. And I wouldn't want to build on the first material library now, it's not actively maintained. So many improvements by steve and rest of the team went into m3
t
My previous version was nearly full custom to be normal M3 ๐Ÿ˜ž Had to duplicate a ton of stuff from M3 and horologist and write full custom tiles stuff. This times it went a lot smoother so thanks to the team ๐Ÿ™‚ Just missing the shapes and wavy indicators, but I'll probably skip them for now as too lazy.
y
What are you missing for shapes. You should be able to apply graphics shapes even morphs as container shapes.
And wavy indicator, I guess you'd have to reuse mobile material 3?
t
I opened a quick issue as asked by Steve https://issuetracker.google.com/issues/451733088
๐Ÿ‘๐Ÿป 1
Since the themes and everything are not compatible, it needs copy pasta all over to reuse, and then maintain;
๐Ÿ‘๐Ÿป 1
Would be nice to copy the media session stuff specially since it's in the demo screens of how to write nice M3 expressive media player, but I'll wait for the ports.
y
Those components are in horologist. They might be slightly behind the apps.
t
Lol I completely missed that ๐Ÿ™‚ Well thanks for adding more work ๐Ÿ˜›
Thanks for the link.
y
I think jetcaster got bumped to use them also
โค๏ธ 1
โž• 1
s
Yeah, as Yuri pointed out, we are working on providing TLC-scope overloads of AlertDialog in our 1.6 release.
t
@yschimke Seems Jetcaster is not updated after all. Is there some pending PR or doc about what should be done to generate the player colorscheme and use with AnimatedColorScheme from the paintable ?
y
Oops sorry thought it was
I'll take a look tomorrow
โค๏ธ 1
t
I looked a little everywhere and could not find anything or details. I think I'll do it manually as in the main app for now. Do you know if there's some official details about preferred colors to choose from the image to ensure contrasts ?
Not so bad for a first try.
y
That looks great
Shit, "tomorrow" is now tomorrow
t
:) No problem I get it to work and it's using a port of the official theme color stuff. Would just be nice to know the official palette style to use. Currently using TonalSpot with 2025 specs.
y
No plans to make the colour scheme generation public
Wear compose gets the theme ones from theme colour resources. And the Media Controls logic is inside the media APK.
t
Hum ok that's strange the official code is public https://github.com/material-foundation/material-color-utilities pretty sure they use that too, would just need a guidance on the palette type expected. Anyway so far the one I chose and implemented seems to work well. I guess I'll go with that even if that's one more thing we can't ensure consistency.
c
regarding Jetcaster: https://github.com/android/compose-samples/blob/main/Jetcaster/wear/src/main/java/com/example/jetcaster/WearApp.kt is using the horologist material 3 screens for media. Can you share what is missing?
(perhaps not updated to the very latest API versions but it's been updated for material 3)
t
It's not using the animated ones nor is using the artwork background / dynamic colors as per the wear m3 expressive guides.
c
Yeah, it's accurate that these 2 features are not available on that sample.
Is anything else missing that you noticed?
t
No that's the one that needs details from Google to implement as per the specs. There's videos, docs and everything. There's even https://developer.android.com/design/ui/wear/guides/patterns/media/color that says The system creates a theme for your app's media controls by sourcing a seed color from the current media entity's artwork. But it only does that for the media session controls, this is not accessible from apps. The docs also says "Align UI patterns and avoid creating new UIs for common interactions." with the

https://developer.android.com/static/wear/images/design/media-music.pngโ–พ

image. There's ultra detailed specs like https://developer.android.com/design/ui/wear/guides/patterns/media/controls but all the color stuff and background is ommited.
y
Yep. The underlying libraries are basically the same. But then tuned for the colours of the palette. A lot of lookup tables and coefficients you would need
t
So they don't use any of the official M3 palettes that that library offers and are the official 2025 m3 expressive colors? All the coefficient and tables are already there, all the stuff to extract and quantize colors from images too. That's strange that they invented something else. Maybe you could still find someone to say that from the official stuff it's better to use TonalSpot or Vibrant or another from that official palette guide. I'm too dumb with colors to decide what's best and what looks the most like the media session controller.
y
I'll confirm if they match any tomorrow
t
Thanks, don't waste too much time on this. We don't necessarily need a perfect match but some pointers on what we should do with the tools that we have at disposition to point toward the target they show.