i have an interesting idea.

i have an interesting idea. Not really Lightning related, but it could be a feature suggestion for the app drawer status bar tint color setting or the swipe up settings panel color. 🙂

if i make a theme i use tasker to set the widget colors so i can set new colors easy to my widgets if i change the wallpaper. Here comes the funny part. Is it possible with script maybe to get the rgb color medians of an image (background) convert it to html color codes and store it in a txt file. With this all the colors could be set to a kind of average color of the background image.

if i have a background with mainly blue colors, it will change to a blue thing, but if i have a sunset it turns to an orange thing.

The idea comes from my xperia phone. if i watch photos, there is a led bar below the screen which changes color according to the image.

What you programmer and scripting gurus say, is it possible to code something like this?

]]>

2 Commentsto i have an interesting idea.

  1. Anonymous says:

    < ![CDATA[

    Probably not for live wallpaper, but other should be possible. No idea about performance though

    ]]>

  2. Anonymous says:

    < ![CDATA[

    There has been a few posts related with this recently, by Josh Gray and TrianguloY IIRC.


    Basically that’s not impossible. This is a CPU and memory intensive operation but the code to do that is easy to embed in Lightning (and is quite compact). I don’t think this is a computation that can be done automatically to theme objects, but it could work this way:


    – at startup, compute the color in the background


    – in the color picker, allow the user to toggle between the current color picker and the palette color picker (maybe in two versions: the wallpaper and the item itself)


    – in script, add an api to get palette colors, and another one to update it.




    Related posts:


    https://plus.google.com/u/0/113418323387583377848/posts/SwyDSozWkXZ


    (OMG, already one month back!)


    https://plus.google.com/u/0/105066926163073195690/posts/FuBhf8EwF5T

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *