I created a theme with material theme builder (<ht...
# compose-desktop
p
I created a theme with material theme builder (https://material-foundation.github.io/material-theme-builder/) and buttons are supposed to be red, but the buttons of the app I'm creating for Compose Desktop are blue. I am not specifying the color of the Button, it supposedly should take it automatically from the theme. Does anyone know what is happening?
k
p
thank you but it depends on a external library
I prefeer to achieve it without using external libraries
maybe can you explain me why you think it will work so I can understand what is wrong on the theme.kt or color.kt files generated by the official material builder?
well, I disscovered that there is an option on that website to set if you wanna use common kt files or Kolor kt files
I used the common ones, to avoid using the external library
and the button is still Blue
any idea?
k
you don't have to use the external library
it generates a standard material theme too
p
yep, all is clear now
I was importing material.Button instead of material3.Button
the issue was that the project generated by KMP project generator on KMP site generated it with material instead of material3
and I added material3 dependency later
now seems it have both materials mixed
using material3 button the color is correct
k
p
wow, very nice
are you planning to add retrofit, room, datastore?