This is my current new desktop setup, mainly based on the new touch event.
Posted by: pierrot | on July 28, 2014
This is my current new desktop setup, mainly based on the new touch event. I forgot to show, that clicking the bottom centered icon opens the app drawer, and double tapping a folder opens it for editing, sorry for that.
]]>
< ![CDATA[
Is there an easy way to make folders pop-up where you touch, or did you do it manually in the folder window settings?
]]>
< ![CDATA[
it’s manual
]]>
< ![CDATA[
but maybe that can be scripted… let’s have a look at it
Edit: is possible, but does only make sense, if the opener stays always in the same place and is on the home page. Script see below
]]>
< ![CDATA[
var i=LL.getEvent().getItem()||LL.getEvent().getContainer().getOpener();
var d=LL.getCurrentDesktop();
var dw=d.getWidth();
var dh=d.getHeight();
var p=i.getProperties();
var box=p.getBox(“f.box”);
var cont=i.getContainer();
var w=cont.getWidth()+box.getSize(“ml”)+box.getSize(“mr”)+box.getSize(“bl”)+box.getSize(“br”)+box.getSize(“pl”)+box.getSize(“pr”);
var h=cont.getHeight()+box.getSize(“mt”)+box.getSize(“mb”)+box.getSize(“bt”)+box.getSize(“bb”)+box.getSize(“pt”)+box.getSize(“pb”);
var c=center(i);
var x=c[0]-w/2;
var y=c[1]-h/2;
if((x<0||y<0||x>dw-w||y>dh-h)&&(i.getTag()==”true”||confirm(“The folder may be partly out of screen. Do you want to have it aligned to the borders instead?”)))
{
if(i.getTag()==”true”||confirm(“Save this setting for this folder?”))i.setTag(“true”);
if(x<0)x=0;
else if(x>dw-w)x=dw-w;
if(y<0)y=0;
else if(y>dh-h)y=dh-h;
}
p.edit().setString(“f.wAH”,”CUSTOM”).setString(“f.wAV”,”CUSTOM”).setInteger(“f.wX”,x).setInteger(“f.wY”,y).commit();
function center(item)
{
var r=item.getRotation()*Math.PI/180;
var sin=Math.abs(Math.sin(r));
var cos=Math.abs(Math.cos(r));
var width=item.getWidth()*item.getScaleX();
var height=item.getHeight()*item.getScaleY();
return [item.getPositionX()+(width*cos+height*sin)*0.5,item.getPositionY()+(height*cos+width*sin)*0.5];
}
]]>
< ![CDATA[
Oh damn, that’s a little out of my league, haha. I’ll try to see if I can make sense of it.
]]>
< ![CDATA[
I changed the grey selection effect to a bubble 🙂 looks even better to me https://docs.google.com/file/d/0B40xU-30MxN7dWoySWtBYmg5eUE/edit?usp=docslist_api
]]>
< ![CDATA[
Well done.
]]>
< ![CDATA[
i like the effect(s), but (sorry to say that) visually it is not really the eye-catcher. that is fortunately a matter of taste 😉
]]>
< ![CDATA[
gerd reuter Yes, I’ve seen in your layouts, that you seem to like to integrate the items in the background, while I like to have them on a background
]]>