Cyanea icon indicating copy to clipboard operation
Cyanea copied to clipboard

AddAttributes ?primaryTextColor ?primaryTextColorLight?primaryTextColorDark

Open omkar-tenkale opened this issue 5 years ago • 1 comments

Can we define custom colors in cyanea_themes.json

eg {"theme_name":"CustomCyaneaTheme","base_theme":"LIGHT","primary":"#FFEE3868","primary_dark":"#FFCA2F58","primary_light":"#FFF0557E","accent":"#FF93C43E","accent_dark":"#FF7CA634","accent_light":"#FFA3CC5A","background":"#FFFAFAFA","background_dark":"#FFD4D4D4","background_light":"#FFFAFAFA", ,"primaryTextColor ":"#FFFAFAFA", ,"primaryTextColorLight":"#FFFAFAFA", ,"primaryTextColorDark":"#FFFAFAFA" },

It'd also be handy if we can set other colors too eg

,"chatBubbleOutgoingColor":"#FFFAFAFA" ,"chatBubbleIncomingColor":"#FFFAFAFA"

And use it in textviews/drawables like

            android:background="?chatBubbleOutgoingColor"

omkar-tenkale avatar Aug 01 '20 22:08 omkar-tenkale

Its fine if i have to apply these attributes to every view i want to style,

I don't expect cyanea to read keys from json and assume what the color is and apply that to a view's text or bg etc

omkar-tenkale avatar Aug 01 '20 22:08 omkar-tenkale