https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
k

kenkyee

12/07/2023, 8:58 PM
Here's a fun one...you wonder why themes aren't working and find out that you have the wrong material import for Scaffold because your theme is Material3 based and the regular material.Scaffold was imported instead 🤦
same 3
d

Dragos Rachieru

12/08/2023, 11:39 AM
I wish I could depend on material icons without depending on material
m

Marcin Wisniowski

12/08/2023, 11:53 AM
You can copy paste the individual icons into your project without depending on it at all.
☝️ 2
a

alexfacciorusso

12/08/2023, 12:18 PM
What should be addressed in the compose desktop library is the default import behaviour. E.g. by default the desktop library should be material-agnostic, then the developer would import either material or material3. In that way, the "material2" composables wouldn't mix with the 3 if not necessarily needed, effectively avoiding issues where some composables take their appearance from a m3 theme and some others from m2, where the developer forgot to upgrade or mistakenly imported the material 2 composable
1
k

kenkyee

12/08/2023, 2:53 PM
ditto...was wondering why there wasn't a material3 vs. material2 version of this lib
Copy code
org.jetbrains.compose.foundation:foundation-desktop
The material components should probably be pulled out of that into .material and .material3 versions
2 Views