It’s currently not possible to set icon Mask, Overlay and Background by script.
It’s currently not possible to set icon Mask, Overlay and Background by script… Can you please add this, Pierre Hébert? advTHANKSance
]]>
« It would be immensely useful to be able to change the scale of the text on the script editor. (Previous Post)
(Next Post) Adding Zooper Widget, How? »
< ![CDATA[
I tell you what man it blew my mind when I figured out how you can make icons out of images in layers like that. even going into other icon packs and pulling out drawable images of the icon mask overlays and backgrounds and mix them up and finding really unique combinations is just great old nerdy fun lol another thing I would love to see would be ability to save styles and certain parts of the setup aside from a whole backup.. It would be cool to have styles of your own that were permanent you could use on any desktop you were making without having to switch templates but may require too much work on the developer side but I am NOT one so I don’t know
]]>
< ![CDATA[
I do that regularly with my app drawer set up regularly.
– Save to a style
]]>
< ![CDATA[
Oh yeah I do too I mainly do it was folders in the app drawer because I always end up using the same set up that is most efficient. I just wish we could save them to a separate place then the whole back of itself that way they could be kept and used on multiple backups without having to load a previous back up just to have to delete most of it to only get the folders and the app drawer.. Consequently being whitening is so insanely customizable there is a lot of time involved with repetition of certain steps sometimes depending on the conditions
]]>
< ![CDATA[
I know it can be done like this. But I want to do it by script.
]]>
< ![CDATA[
I don’t know why I didn’t implemented those one, although this is fairly easy since everything is already here (for the box background).
Now on the TODO list.
]]>
< ![CDATA[
Pierre Hébert Great. …so when is the next beta? 😀
]]>
< ![CDATA[
Not before a while. The work I started is… huge. I hope I will manage to do it.
]]>
< ![CDATA[
Pierre Hébert Then a hotfix for current version maybe…?
]]>
< ![CDATA[
meh… This is possible, I keep two branch, one for fixes on the published version one for dev, but I prefer to minimize merges at the moment.
Is it urgently needed? If yes I will try to do it, if not then maybe you can use the following trick (not tested but it should work):
– through script, directly save an image with the path of the default icon, with either “b” or “o” or “m” appended to the name of the file (b for background, o for overlay, m for mask)
– reload the item by calling PropertySet.edit().commit()
An example of full path would be:
/data/data/net.pierrox.lightning_launcher_extreme/files/pages/100/icon/6553606b
where 100 is the container id, 6553606 is the item id.
You can save an image using Image.getBitmap().compress(Bitmap.CompressFormat .PNG, 100, new FileOutputStream(file));
(you should take care at closing the stream in a finally clause)
]]>
< ![CDATA[
Pierre Hébert Will give it a try, thanks. Not thaaat urgent, but I could really use that addition. Workaround is okay for me.
]]>
< ![CDATA[
Let me know if this is does not work or if it takes too long to use this workaround and I’ll implement the api
]]>