How to make a horizontal menu to switch the color of the letters, when we move 3 zooper widgets within a panel?

How to make a horizontal menu to switch the color of the letters, when we move 3 zooper widgets within a panel?

Sample Menu:

Files Home Weather – white letters

Panel: 1 panel with 3 widgets (corresponding  Files – Home – Weather)

When the corresponding widget to File from the File menu the word is yellow, the other two blank.

Thanks in advance for your help

]]>

28 Commentsto How to make a horizontal menu to switch the color of the letters, when we move 3 zooper widgets within a panel?

  1. Anonymous says:

    < ![CDATA[

    Hmm don’t quite understand what you are trying to do exactly, but I think I do…. Oh you also jus gave me a damn good idea lol

    ]]>

  2. Anonymous says:

    < ![CDATA[

    I do not think there is a “clean” solution. You could remove the panel and press the three widget on the right and left of the HOME. Pin the menu: HOME-WEATHER-CALENDAR vertically and horizontally with white text.


    On the screen where there is the Calendar widget (the one on your right) add yellow text CALENDAR. Menu position you take him up, then swipe to display the calendar when the yellow text covers the white and create the effect …


    Do the same for the left box.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Oh wait u want the selected one highlighted when you select it? If that is it, then there’s probably several ways, but if there’s more to it, then obviously harder lol I’ve noticed alot there’s tons of different ways to do stuff in lighting, almost always an easier way than what I come up with

    ]]>

  4. Anonymous says:

    < ![CDATA[

    My solution would be to use the panel “position changed” event with a script. This script would compute the current page (position X / panel width) and according to this page would set the label color.


    Need help for the script ?

    ]]>

  5. Anonymous says:

    < ![CDATA[

    That’s kinda what I was thinking when I read this, well something similar when I first saw that option position changed. But Pierre Hébert​ is there a way (without script) to launch an action or something when you swipe to a certain page and it hits the stop points? What he wants could be done plus swiping onto a white page to launch Google now to better SIMULATE GNL.. Oh wait, it could also be a similar thing as hitting a bookmarked page launches an action if that’s makes better sense…i still can’t believe possibilities I keep finding lol

    ]]>

  6. Anonymous says:

    < ![CDATA[

    You are right Corey Spell stop points could work too, actually it would probably be faster!


    In order to change colors a script is still needed but it would be a bit simpler.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Pierre Hébert​ that was the first thing I thought and have been wanting to do it but… How do I get something to launch when I hit a stop point??? I am sooo over looking it I know, but I’m also doing 100 other thing at once.

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Pierre Hébert​ that was the first thing I thought and have been wanting to do it but… How do I get something to launch when I hit a stop point??? I am sooo over looking it I know, but I’m also doing 100 other thing at once.

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Long tap on the stop point, customize item. From there you can set any action on the reached event option.

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Damn I hate g+ notifications! Lol I found it like a min after I asked you, that’s happened several times now lol I’ll ask, go back and figure it out right afterwards…. But thanks again bro…. That’s really cool as hell man, there really is alot that can be done with anything… This guy can use a stop point to open a transparent folder window with one color text as the label, then when hitting the next point close that color text folder and open a different color text transparent folder window over the next one and so on… Sergio Lobianco​ did u try using transparent folders to change to different color text? It might actually work, put down the white text labels at the very bottom layer of the screen and, pin, and start to stack on the toys lol

    ]]>

  11. Anonymous says:

    < ![CDATA[

    Well I’ve gotta know if it works too now lmao

    ]]>

  12. Anonymous says:

    < ![CDATA[

    Pierre Hébert This to me is the right solution, but it has one problem, I do not even know how to work with scripts, could you help me with this?

    ]]>

  13. Anonymous says:

    < ![CDATA[

    Well when I deactivate one of the edges of the stop point (with or without the matched edge) it doesn’t launch the action every time, but I might have something wrong 

    ]]>

  14. Anonymous says:

    < ![CDATA[

    As a simple solution you can include the colored rectangles at the top of your zooper widgets and place the menu bar above it with transparent text. Hope, you understand what I mean. Not so fancy but works.

    ]]>

  15. Anonymous says:

    < ![CDATA[

    Hi guys, I’m trying to write the script for Sergio Lobianco but I face with a 1st problem : I can’t change the label color!! No error but nothing happens :-[


    Here is the code, if someone can tell me what’s wrong 🙂



    var a=LL.getCurrentDesktop() ;


    var c=a.getItemById(0x060001) ;


    var d=c.getProperties().edit() ;


    var f=d. setInteger(‘setLabelFontColor’, 0xff00ff00) ;


    d.commit() ;

    ]]>

  16. Anonymous says:

    < ![CDATA[

    Almost right, but this “s.labelFontColor” (small typo)

    ]]>

  17. Anonymous says:

    < ![CDATA[

    I’m sorry but it doesn’t work 🙁 I miss smth I guess

    ]]>

  18. Anonymous says:

    < ![CDATA[

    Could you try to isolate the script, set its item menu flag to checked, and use “var c=LL.getEvent().getItem();” to check whether the color changing code is right ? From the desktop long tapping on any shortcut then selecting script/your script should change the color, if it works then the issue is somewhere else, otherwise could you copy/paste again the code here ?

    ]]>

  19. Anonymous says:

    < ![CDATA[

    So I get the time to try, but get an error “can’t find function getItem in object function () {…}”


    Here the code


    var a=LL.getCurrentDesktop() ;


    var c=LL.getEvent.getItem() ;


    var d=c.getProperties().edit() ;


    var f=d.setInteger(“s.labelFontColor”,0xff00ff00) ;


    d.commit() ;


    Thanks Pierre

    ]]>

  20. Anonymous says:

    < ![CDATA[

    getEvent*()*, otherwise you reference the function object, this is valid but not what you want.

    ]]>

  21. Anonymous says:

    < ![CDATA[

    Grrr how can I miss that…. Sorry


    So it works this way, color changes.


    Edit : after reboot, the 1st script works…


    Thanks a lot again Pierre Hébert


    Let’s go for the next part 😛

    ]]>

  22. Anonymous says:

    < ![CDATA[

    I thank everyone for their effort to solve my doubt

    ]]>

  23. Anonymous says:

    < ![CDATA[

    Sergio Lobianco, here a script to do what you want (I hope :-P) Pierre will laught at it but it (almost) work


    So : create your menu with 3 blank items and set their name as H, I and J


    Create your panel with the 3 widgets, get it’s id then paste it in the script where ‘ID here’ is written


    And select this script in the panel position changed event


    You can use the seamless X mode, but it will have a bug between 1st and 3rd menu (scroll in the other direction to get it back ^_^ ) don’t know why…


    Script in the next post

    ]]>

  24. Anonymous says:

    < ![CDATA[

    var a=LL.getCurrentDesktop() ;



    //panel


    var b=a.getItemById(ID here).getContainer() ;


    var cp=b.getPositionX() ;


    var wi=b.getWidth() ;



    switch (cp){


    case 0 :


    var c1=a.getItemByName(‘H’) ;


    var d1=c1.getProperties().edit() ;


    var f=d1.setInteger(“s.labelFontColor”,0xfffff043) ;


    d1.commit() ;


    var c1=a.getItemByName(‘I’) ;


    var d1=c1.getProperties().edit() ;


    var f=d1.setInteger(“s.labelFontColor”,0xffffffff) ;


    d1.commit() ;


    var c1=a.getItemByName(‘J’) ;


    var d1=c1.getProperties().edit() ;


    var f=d1.setInteger(“s.labelFontColor”,0xffffffff) ;


    d1.commit() ;


    break ;



    case wi:


    var c1=a.getItemByName(‘I’) ;


    var d1=c1.getProperties().edit() ;


    var f=d1.setInteger(“s.labelFontColor”,0xfffff043) ;


    d1.commit() ;


    var c1=a.getItemByName(‘H’) ;


    var d1=c1.getProperties().edit() ;


    var f=d1.setInteger(“s.labelFontColor”,0xffffffff) ;


    d1.commit() ;


    var c1=a.getItemByName(‘J’) ;


    var d1=c1.getProperties().edit() ;


    var f=d1.setInteger(“s.labelFontColor”,0xffffffff) ;


    d1.commit() ;


    break ;



    case wi*2:


    var c1=a.getItemByName(‘J’) ;


    var d1=c1.getProperties().edit() ;


    var f=d1.setInteger(“s.labelFontColor”,0xfffff043) ;


    d1.commit() ;


    var c1=a.getItemByName(‘I’) ;


    var d1=c1.getProperties().edit() ;


    var f=d1.setInteger(“s.labelFontColor”,0xffffffff) ;


    d1.commit() ;


    var c1=a.getItemByName(‘H’) ;


    var d1=c1.getProperties().edit() ;


    var f=d1.setInteger(“s.labelFontColor”,0xffffffff) ;


    d1.commit() ;


    break ;


    } 

    ]]>

  25. Anonymous says:

    < ![CDATA[

    Stahw Down Thank you, for your effort and also for his script. Let’s see if anyone can fix the bug (between 1st and 3rd menu – scroll in the other direction to get it back ^ _ ^). Even so your script is fabulous.

    ]]>

  26. Anonymous says:

    < ![CDATA[

    You’re welcome, it was a pleasure 😊

    ]]>

  27. Anonymous says:

    < ![CDATA[

    Hi Stahw Down,



    I’m going on vacation, and I can not test, by chance you tested?



    Could you share the template?



    thanks a lot

    ]]>

  28. Anonymous says:

    < ![CDATA[

    Sergio Lobianco here the template


    https://www.dropbox.com/s/qn9z3l2qtltu690/Template-2015-02-28%2007-52?dl=0 enjoy your vacation

    ]]>

Leave a Reply

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