jaredrummler / Cyanea

A theme engine for Android
Apache License 2.0
1.45k stars 144 forks source link

ColorPrimary doesnt work in targetSdk 29+ #89

Open ricrebelo opened 3 years ago

ricrebelo commented 3 years ago

If you set the targetSdk to 29+ the colorPrimary will not be applyed.

This can be observed in the Java Demo provided, if you change the targetSdk to 29+, the ToolBar will not change its color

ricrebelo commented 3 years ago

After a few more research, the bug is with Drawables, in XML if you use android:background="?colorPrimary", it will use the app primary color and not the one from Cyanea. The workarround is to force the color programmatically from a Cyanea instance

kklolo commented 2 years ago

After a few more research, the bug is with Drawables, in XML if you use android:background="?colorPrimary", it will use the app primary color and not the one from Cyanea. The workarround is to force the color programmatically from a Cyanea instance you can use ### android:background="@color/cyanea_primary_reference" tested and worked on api 29+

HeroBarry commented 1 year ago

Still not solved