now browsing by category
Question about an unexpected behaviour.
Why the ‘image’ of an item (the setImage()) is always displayed with a size of 100×100?
If I run this script:
var i=LL.getEvent().getItem();
var im=LL.createImage(400,400);
var p=new Paint();
p.setColor(Color.RED);
im.draw().drawRect(50,50,350,350,p);
i.setImage(im);
What I expected is to display the image of the item with a red box in the middle.
But instead it shows part of the red box on the bottom left corner (concretely, the 100×100 top left part of the full image)
It happens the same with a smaller picture, in this case it is showed at the top left part.
Is this a bug? An unexpected behaviour? (A problem of my device/layout? )
It is easy to apply a scale before drawing, but I wanted to ask.
Also, is it always 100×100?
]]>Hello
it’s my first message here! I bought LL some months ago, however I started tu “study” it only the last one.Â
This week alone was enough to understand I can really do exactly what I want with my home page, so I’m ver happy I didn’t make a “wrong” buy 😀
Reading posts in this community I’ve understood for now I need help of third party apps to do everything, like Tasker or Zooper Widget or KLWP, so for know I won’t ask for new features, but I’ll wait what Pierre will decide even if the idea to have an “only Lightning Launcher” home was intriguing.Â
Before my first two requests, I would like to say that I know how to program so I was able to understand scripts and general logic, but I never worked with javascript (but it’s quite easy for me), and mainly with graphics.
For this reason I started to adapt what the community in general already made, and I’m happy I was able to build a first “skeleton”.
After done this, I’ve the following two requests I wasn’t able to read about in the community.
1) Is it possible to use ZWUtilities variables directly in LL? Main idea is to change panel background or icon colors according to schemes already done with ZWUtilities, so without creating and using a Zooper Widget.
2) Is it possible to create via script a slidebar similar to the “old” Touch3d UI? Here is a link:
https://www.youtube.com/watch?v=dZKCVxp00HQ
As you can see, we would need a panel/folder, and every element will be a shortcut to other panels/folders. When sliding over it we would have to dim background and show title/icon of corresponding folder, “underlining” the correct button, while directly clicking on an icon would bring us the right folder. I think video is enough clear.
My dream would be to have many 1×1 widgets on the so-called “main dock panel” so we can have like dynamic icons. I hope using widgets instead of normal “elements” (apps or shortcuts) don’t give too much further problems.
Thanks for your attention.Â
Hello, I have Tasker send a text to be put in an lightning item label.
I’m using tasker to hide/show an e-mail notification badge since I use AquaMail from various IMAP accounts and so…
Is there a way I can use the dots page indicator but have the internal colour change depending on which screen is…
Is it possible to set wallpaper for each page or pan a single wallpaper with different images horizontally in single…
PS: using tasker is also an option for me.Â
]]>
D5 Creation