now browsing by category

 

made a ‘Custom view’ as a calendar…. Cool :)

made a ‘Custom view’ as a calendar…. Cool 🙂

LL.bindClass(“android.widget.FrameLayout”);

LL.bindClass(“android.view.Gravity”);

LL.bindClass(“android.widget.CalendarView”);

var context = LL.getContext();

var calendarView = new CalendarView(context);

var lp = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT);

lp.gravity = Gravity.TOP;

calendarView.setLayoutParams(lp);

item.setVerticalGrab(true);

return calendarView;

]]>

I would like to change the the background color of a text or its font color to change by executing a Tasker Task.

I would like to change the the background color of a text or its font color to change by executing a Tasker Task. As I’m a noob on scripting, could anyone please help me in writing a small piece of script for this.

If possible, this maybe extended for panel or folder background color etc. Thank you in advance.

]]>

Hi, I’m using TrianguloY script fadein found in another post.

Hi, I’m using TrianguloY script fadein found in another post. Works fine but when moving desktop the widget reappear, I don’t know why

Attached code and video

—————-

var e = LL.getEvent();

var d = e.getContainer();

var it=d.getItemById(0x000032);

var time=500;

var FPS=20;

var step=1000/FPS;

delta=255/(time*FPS/1000);

setTimeout(function(){fadein(it,255,time);},step);

//fade in

function fadein(it,alpha,time){

if(alpha<0){

return;

}

alpha-=delta;

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

setTimeout(function(){fadein(it,alpha,time);},step);

}

]]>

I was testing around, and came up with this.

I was testing around, and came up with this.

Animations: ‘fade’ and ‘slide’. If you don’t specify any (or a wrong one) a random one will be played each time.

Before you ask: the way this script works only allow those two animations. I’m sure it is possible to use others (maybe even create custom ones) but I couldn’t find a way.

]]>

Inspired by James Coyle​: Containercopy

Inspired by James Coyle​: Containercopy

This script copies a panel or folder with all the items in there. It does not copy any styles.

New Panel/Folder is always created at 0/0.

How to use: run from panel or folder.

]]>

Small script that lets you change the Z order of the items in a container from a custom dialog.

Small script that lets you change the Z order of the items in a container from a custom dialog.

Instructions:

Run the script from a container.

The list of all the items in that container will be shown (type+label+name). The first item of the list is the top most one. The last item the bottom most one.

Choose two of them to exchange their Z order.

Repeat.

Click exit to exit.

Note: I tested it some few times(in fact I had the idea less than two hours ago) and it works, but as usual maybe it don’t work in some specific situations. Anyway the script only change the Z order, nothing more.

]]>

Update 1.7: Multitool

Update 1.7: Multitool

– new:

* reset the recent apps drawer tab

* new icon

-fixed:

* script import: launcher crash when aborting import, name and flags not removed from code, not able to get name from file

As always: I can not guarantee anything. please report bugs to me!

APK:

https://docs.google.com/file/d/0B40xU-30MxN7TUhPS2V1ai1uWGM/edit?usp=docslist_api

source (as always): http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_multitool

]]>

Layout Manager

Layout Manager

v1.3

– new icon

– smoother animation (speeding in and out)

– items now move exactly parallel

– shortcuts launched from another desktop will now bring the animated desktop up

TODO:

– sort layouts

– animation speed

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

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

This is a small script I made myself to make better use of the new material effect, but this can be used in other…

This is a small script I made myself to make better use of the new material effect, but this can be used in other things too.

The script provided is made so it takes the average color of the icon of an item, and apply it to the selected color (configurable). You can use it on an item (running it from the item) or in all items in a container (running it from the container).

The script consist of a function (that you can use for other things if you want) that takes an image and a number, and returns the exact average color of the image (using all pixels, half of them,…depends on the number). It can take time, specially with high resolution ones and using all the pixels.

If you just want to get the color and don’t change it in a while, use all pixels (resolution=1), but if you plan to implement it dynamically, better use less pixels (resolution=66 means approximately 100/66=1.5% of the pixels)

Note: in the video that was my testing desktop, and there were other items out of view. The process is slow, but no so much.

Anyway you can change the resolution settings and it will be faster (but less precise)

]]>

Repository

Repository

– Removed the ‘requires beta’ section because it was unused and it took space especially in mobile view

– Sorted some scripts

– Moved some scripts to a ‘Deprecated’ section, because they are now native features of the launcher and shouldn’t be required (if some other scripts belong there, just move them too)

– Added some of my scripts  from the past year (layout manager, appdrawer categories shortcut, Menu changer, homescreenchanger and desktopcreator)

]]>