Is it possible to change a Panels Transparency in a script?

Is it possible to change a Panels Transparency in a script?

from 0 to 255…

]]>

14 Commentsto Is it possible to change a Panels Transparency in a script?

  1. Anonymous says:

    < ![CDATA[

    Yes.



    panel.getProperties().edit().setInteger(“i.alpha”,value).commit();

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Thanx!


    ok, noticed that it doesn’t play well with loops and rapid changes… :/


    trying to do a fade effect when scrolling…


    ehh, I can live without it 🙂


    Thanx again!

    ]]>

  3. Anonymous says:

    < ![CDATA[

    fade would be great, but i don’t think it’s possible atm

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Possible, but vveerryy slow due to PropertySet involved. Wished this could be charged directly.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    It is possible to reduce the time taken by the property change, but translucent item rendering will remain rather slow.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Pierre Hébert Well, I tried to combine with slide (Sidebar fading in), so it needs to render nevertheless. Or does it really make such a difference? Will try setting panel statically to semi-transparent and see how much the impact is.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Transparency is awfully slow

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Pierre Hébert Nope, semi-transparent sidebar scrolls in and out the same speed. So the propertyset commit is the main delaying factor.

    ]]>

  9. Anonymous says:

    < ![CDATA[

    So you get a fast processor 😉

    ]]>

  10. Anonymous says:

    < ![CDATA[

    I think Pierre Hébert means not the Property set change is the problem, but rendering the panel in the new transparency takes time. If you have a static transparency it has to be rendered once, but each time you change the transparency it has to be rendered again.



    Pierre Hébert what about a method like fade(fromTransparency,toTransparency,duration);

    ]]>

  11. Anonymous says:

    < ![CDATA[

    I have my whole desktop set to about 200 transparency and it’s all smooth

    ]]>

  12. Anonymous says:

    < ![CDATA[

    Pierre Hébert Good old Nexus 4, not top notch, not overclocked, but fast enough.

    ]]>

  13. Anonymous says:

    < ![CDATA[

    Lukas Morawietz ready to use methods to trigger animations is a good idea.

    ]]>

  14. Anonymous says:

    < ![CDATA[

    Thanx Pierre Hébert .. in latest update ‘LLX v10.4b1’ I can fade alpha in a loop without lag… 🙂

    ]]>

Leave a Reply

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