now browsing by category

 

go to specific app drawer view

go to specific app drawer view

Nigel Stewart​ asked for an easy way to do this, so here it is.

Just create a shortcut to this script and pass the value of the view you want to go to as Data. If this data is not present or invalid, the script will fall back to the value specified in the config section.

]]>

Update: Layout Manager

Update: Layout Manager

Fix:

Persist action to launch after animation

Added:

Shortcuts work with templates now

Should adjust the position and size to the screen resolution (I can’t test that a lot, I have only one phone…)

Note:

I forgot to say, that double positioned items (and maybe even orientation changes) may cause unexpected behaviour with this script.

https://drive.google.com/open?id=0B40xU-30MxN7NVBXMjhKakZ0akk&authuser=0

]]>

I have successfully added a color-shift to the battery-widget.

I have successfully added a color-shift to the battery-widget. It turns from a green when full to a red when empty. I am happy with the result, but my code feels hacky.

The 16 added keeps it from becoming single digit.

Please tell me, this is not the “best practice” way to do it. 😉

So i can add this script to the wiki.

]]>

Small Update to the Dim Background APK to fix a bug reported by tomas batik .

Small Update to the Dim Background APK to fix a bug reported by tomas batik .

apk: https://drive.google.com/open?id=0B40xU-30MxN7andGZW5RYzdkekE&authuser=0

code: http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_dim_bg

https://drive.google.com/open?id=0B40xU-30MxN7andGZW5RYzdkekE&authuser=0
]]>

New Version of my current Project: Layout Manager

New Version of my current Project: Layout Manager

https://drive.google.com/open?id=0B40xU-30MxN7MUVKN3oyNmFIME0&authuser=0

Changelog:

– Switched to light theme

– Added Option to run either an app or a shortcut when the animation finishes.

This allows to (see video)

a) concatenate animations to a complex construct

b) launch something after the animation

(the layouts are the same as in the last video)

]]>

Title

]]>

I’m trying to get the image of an item (shortcut).

I’m trying to get the image of an item (shortcut). The item is in a folder. I often got a NullPointerException. But when I open the folder before and close it, no exception is thrown. This is the relevant script excerpt:

10 item = LL.getItemById(itemid);

11 if (item == null) { return; }

12 image = item.getImage();

The exception points to line 12. Could it be, that the image in RAM isn’t rendered at this time. And opening the folder renders the image? Pierre Hébert how can I check if a rendered image exists?

I could use item.getCustomIcon() or item.getDefaultIcon() but then the mirror or scaling of properties isn’t applied. ​

]]>

Video to my latest app. See https://plus.google.com/115366157037831519359/posts/DuUbicWru7r

Video to my latest app. See https://plus.google.com/115366157037831519359/posts/DuUbicWru7r

What I’m doing here:

– start with an empty desktop and layout manager

– put 3 apps onto the desktop

– create 3 different layouts

– assign two of them to shortcuts and the third to the swipe down gesture of the dektop

– switch with these between the layouts

I’m sorry for the video artifacts :/

]]>

Here’s my new Project:

Here’s my new Project:

https://drive.google.com/open?id=0B40xU-30MxN7UXNUMzh4X2hLeDQ&authuser=0

This is an app which manages desktop layouts, so you can easily switch between them. A layout can also be assigned to a shortcut, so you can apply any layout by e.g. a gesture. When a Layout gets applied the transition gets animated (by default).

Supported item attributes are: size,position,rotation,scale and alpha

Unsupported: Skew

This is a test version. I am not responsible for anything it causes inside of LL.

It requires the repository Importer to be installed on the device (if it is not, it gives a link)

Based on TrianguloY ‘s save layout script.

Icon based on Graphic by Freepik @ flaticon.com (http://www.flaticon.com/free-icon/arrow-shuffle_32238) licensed under CC 3.0 (http://creativecommons.org/licenses/by/3.0/)

PLease let me know if

(a) there are bugs

(b) you like/don’t like a specific feature

(c) you would like to see a specific feature in this app.

https://drive.google.com/open?id=0B40xU-30MxN7UXNUMzh4X2hLeDQ&authuser=0
]]>

Pierre Hébert​​ I’m working on a script that uses desktop position to change the background color of a shortcut.

Pierre Hébert​​ I’m working on a script that uses desktop position to change the background color of a shortcut. The script works if I manually run the code from the Lightning menu or use the “Resumed” event. But I just can’t seem to make it run on the “Position Changed” event. Am I not using the event properly?

Here is the script if it helps:

var e = LL.getEvent();

var c = e.getContainer();

var wide = c.getWidth();

var xloc = c.getPositionX();

var scuthome= LL.getItemById(6750221).getProperties().edit();

if (xloc < 1080) {

scuthome.getBox(“i.box”).setColor(“c”,”ns”,0x1d000000);

scuthome.commit();

} else {

scuthome.getBox(“i.box”).setColor(“c”,”ns”,0x00000000);

scuthome.commit();

}

var scutcal= LL.getItemById(6750222).getProperties().edit();

if (1080 >= xloc && xloc << 2160) {

scutcal.getBox(“i.box”).setColor(“c”,”ns”,0x1d000000);

scutcal.commit();

} else {

scutcal.getBox(“i.box”).setColor(“c”,”ns”,0x00000000);

scutcal.commit();

}

]]>