Is there any way to set a new style for a folder with a script like via settings (“load style”)?
Is there any way to set a new style for a folder with a script like via settings (“load style”)?
Haven’t found anything in the API that looked like that for me..
Thanks in advance!
]]>« Actually I was purchased lighting launcher few months back, but only thing is I was changed my mobile so how to… (Previous Post)
(Next Post) Hey guys »
< ![CDATA[
not sure what “load style” is found to test what it does
]]>
< ![CDATA[
Bogdan Tautu in the settings of a folder there is the section “Manage” at the bottom with it’s first option to be “Load a style” where you can select a saved set of options for it to be applied.
I want to set such a style with a script, but didn’t find any option to do so.
]]>
< ![CDATA[
You can do what “load a style” does using the PropertySet API class
Call “getProperties” on the folder container (see: http://www.lightninglauncher.com/scripting/reference/api-beta/reference/net/pierrox/lightning_launcher/script/api/Container.html#getProperties%28%29 ) then call edit() to get the Properties editor
]]>
< ![CDATA[
Bogdan Tautu Thanks I’ve seen this possibility in a post of TrianguloY, but I don’t want to set a predefined set of properties, rather than give the user the possibility to save a style with a predefined name which is applied to other folders as well.
Maybe I’ve to think about a less elegant solution to provide this, like working with tags and a separate script to save a “style”.
]]>