garretyoder / Colorful

Android runtime theme library
Apache License 2.0
2.13k stars 193 forks source link

Realtime accent color change ? #8

Closed bmbariah closed 7 years ago

bmbariah commented 7 years ago

Can we have the accent colors change immediately after apply? That is without leaving the current screen? I tried to trigger a color change from color picker dialog but it doesn't do anything to the current screen

meierjan commented 7 years ago

I don't think this is possible without extra implemetations of change events/callback. If you change the theme you even have to restart the activity if I have the source code correctly in mind.

bmbariah commented 7 years ago

Thanks, turns out Themes are immutable and have to be per-declared and can't be changed on the go to the millions of the colors available

garretyoder commented 7 years ago

Apologies on the late reply, but this is indeed actually possible. I've implemented the same thing in my own App, Cluttr. Feel free to check it out & see how I implemented it.

bmbariah commented 7 years ago

Looks great, how did you achieve this? Are you reloading the entire activity?