https://kotlinlang.org logo
Title
a

Ali Albaali

12/30/2021, 7:17 PM
Does Material You work on desktop? By that I mean, can it pick the colors from the desktop wallpaper? 🤔 If it can't, will there be support for it in the future?
s

spierce7

12/30/2021, 7:21 PM
No - I don’t think it does. If you got the desktop image though, there are several libraries / algorithms to pull theme colors out of the image.
k

Kirill Grouchnikov

12/30/2021, 7:28 PM
A more interesting question - should it? On Android, Material is part of the system itself (settings, notifications, etc) and pre-installed apps. So you do have that expectation, if you will, that other apps should be following at least some principles of it. But just one app out of many on your desktop? That's quite different.
11
a

Ali Albaali

12/30/2021, 9:46 PM
Valid point, thanks for your explanation!
c

Chris Sinco [G]

12/31/2021, 2:03 AM
To add on to Kirill’s point, dynamic color theming is specific to Android 12+ and is only exposed through the Material3 library. It will no-op outside an Android context, i.e. when Compose Material3 is eventually available in Compose Desktop
k

Krystian Kaniowski

01/02/2022, 8:47 PM
However supporting Windows accent (theme) color by compose desktop out of the box could be really cool fetaure and it will be much more consisten with rest of native Windows apps
c

Chris Sinco [G]

01/02/2022, 9:13 PM
Yeah that would be an interesting request for JetBrains to add to Compose Desktop specifically
k

Kirill Grouchnikov

01/02/2022, 9:18 PM
Indeed. Darklaf added support for Windows and macOS accents some time ago (see https://github.com/weisJ/darklaf/pull/127 for macOS). Requires some native code, of course, and it remains to be seen how well this is going to evolve when the underlying platforms evolve their theming.