Little spin-off of my other project (YAPI-HUD).
Little spin-off of my other project (YAPI-HUD).
5 months ago Jay M requested and got a rondom colored App-drawer.
Here is a matching color App-drawer…
..or Flat-UI drawer if you like.
{why can’t I link to this, from mobile app}
]]>
< ![CDATA[
var items = LL.getContainerById(99).getItems();
var lng = items.getLength()-1;
for (var idx=lng; idx>=0; idx-=1)
{
var item = items.getAt(idx);
var img = item.getDefaultIcon();
var bmp = img.getBitmap();
var px = bmp.getPixel(img.getWidth() * .41, img.getHeight() * .71);
if (Color.alpha(px)<255)
{
px = bmp.getPixel(img.getWidth() * .62, img.getHeight() * .36);
}
if (Color.alpha(px)<255)
{
px = 0xFF000000;
}
var pxtx = bmp.getPixel(img.getWidth() * .48, img.getHeight() * .51);
if (Color.alpha(pxtx)<255)
{
pxtx = 0xFFFDDFFF;
}
if ( Color.red(pxtx) – Color.red(px) < 25
&& Color.green(pxtx) – Color.green(px) < 25
&& Color.blue(pxtx) – Color.blue(px) < 25
)
{
pxtx = 0x99DADADA;
}
if ( Color.red(pxtx) – Color.red(px) < 25
&& Color.green(pxtx) – Color.green(px) < 25
&& Color.blue(pxtx) – Color.blue(px) < 25
)
{
pxtx = 0x991A2A3A;
}
var edt = item.getProperties().edit();
edt.getBox(‘i.box’).setColor(‘c’,’ns’, px);
edt.setInteger(‘s.labelFontColor’, pxtx);
edt.setBoolean(“s.iconVisibility”,false);
edt.setBoolean(“s.labelVisibility”,true);
edt.setFloat(“s.labelFontSize”,22);
edt.setInteger(“s.labelMaxLines”,2);
edt.setBoolean(“s.labelShadow”,true);
edt.setInteger(“s.labelShadowColor”,0xFF000000);
edt.setFloat(“s.labelShadowOffsetX”,4);
edt.setFloat(“s.labelShadowOffsetY”,4);
edt.commit();
//bonus
var lbl = item.getLabel().replace(/[aeiou]/g,””);
item.setLabel(lbl,true);
}
]]>
< ![CDATA[
TIP for getting rid of it:
———————-
Settings –> App drawer –> Reset current Desktop (last option at the bottom)
]]>