roschlau / RotaryDial

A very simple but beautiful rotary dialer app.
GNU General Public License v3.0
2 stars 0 forks source link

Add the possibility to customize the primary and accent colors. #1

Open roschlau opened 8 years ago

roschlau commented 8 years ago

It would be cool to set the colors of the background (primary) and the dial wheel (accent) inside of the app to your own preferences.

roschlau commented 8 years ago

Preliminary research suggests it isn't possible to switch out the actual colorPrimary and colorAccent attributes at runtime, as themes are immutable. This leaves only two options: Restrict the available choices to a few predefined themes which can be applied at an Activity restart before setContentView, or manually inject the colors into the views, bypassing colorPrimary and colorAccent altogether. I'd prefer the second option, as there are only very few views that would have to be injected.

GreenMatter would have been a possibility, but as of now doesn't seem to work on Android M.

Sources: Stackoverflow questions

roschlau commented 8 years ago

Spectrum looks good for providing the color picker.