Is there an API for changing colors of built-in page indicator? I can’t find anything useful in API reference…

Is there an API for changing colors of built-in page indicator? I can’t find anything useful in API reference…

]]>

7 Commentsto Is there an API for changing colors of built-in page indicator? I can’t find anything useful in API reference…

  1. Anonymous says:

    < ![CDATA[

    TrianguloY Thanks, but I must give up. Just all this scripthing thing is too much for me…


    Can you help? All I need is simple script, which when run will change color of inner dot (color set in some variable)…

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Hmm, it doesn’t work. Pierre Hébert​​ is this function still not available or am I doing something wrong?



    function change(item,color){


    item.getProperties().edit().setInteger(“p.dotsInnerColor”,color).commit();


    }

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Also Pierre Hébert​ while we are at changing values – maybe would it be possible to add to Tasker plugin such option? Set some variable to value via plugin, then in LL use this variable instead of color or any other parameter? It would make a lot of things easier for users with no programming experience, like me…

    ]]>

  4. Anonymous says:

    < ![CDATA[

    TrianguloY your script should work, I just tested it myself and it is running ok. I don’t know what could be the issue. Does it work on a newly created object ?


    Viggo Jorgen  I don’t want to introduce “variables” because the name is really misleading. There is only “messages” (sent either from Tasker to Lighting or from Lighting to Tasker), and there is an important implication : the initial value cannot be read at startup and needed to be locally saved. This can possibly lead to discrepancy but I don’t know how zooper, kustom or other apps deal with this issue.


    That being said, I understand that the current complexity makes the feature in Lightning pretty less useful 🙁 The best way to improve this wouldn’t be to add variables but to make as if Lightning had variables. I need to think at this more, but maybe there could be a builtin script inside the launcher that would manage all the complex stuff of setting properties. It would take care of associating tasker notifications with properties changes, leaving only the final configuration to the user.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Pierre Hébert this don’t work :/


    I tested on a new item, and on a previous page indicator I had. Nothing.



    change(LL.getEvent().getItem(),0xffffff00);



    function change(item,color){


    item.getProperties().edit().setInteger(“p.dotsInnerColor”,color).commit();


    }

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Weird, maybe I fixed something in my current build since the beta, but I don’t really believe in this…





    Lol, I stopped writing this comment and reloaded the current beta: it didn’t work! I must have changed something but I don’t recall what.

    ]]>

Leave a Reply

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