December, 2014
now browsing by month
Hi all
Having a problem with one of my scripts:
var f=LL.getCurrentDesktop().getItemByName(‘CCMF’);
var p=f.getProperties();
var label = “2”;
f.setLabel(label);
p.edit().setInteger(“i.alpha”,250).commit();
p.edit().setInteger(“s.labelFontColor”,”00xff2196F3″).commit();
Basically it works up till the last line, which is meant to change the color of the shortcut text, which it does in a way, it makes it transparent instead of the color I want it.
So my question is how do you convert a hex color code into the format required for it to work?
I know it’s probably something simple and I think I’ve seen the answer here before but can’t find it.
Thanks in advance.
]]>How can I set an icon for appdrawer ?
I don’t see a LL action. Please show me a nice way.
]]>Can anyone help me with this my goal is to read the contents of MyNotes.txt.


I recently tested with a template, and there are two ‘bugs’ that I think I found, but it’s strange nobody reported…
I exported a template from a nexus 4, and imported it on a galaxy tab. The screen resolution is very different and:
1) the template had a panel with a grid of: columns-fixed number-1, rows-fixed size-79. When I imported it, after the scaling lightning does, the panel still had columns-fixed number-1 (which is expected and right) but still rows-fixed size-79, which is not because this way if the screen is shorter less items are shown and vice versa.
2) the template had the desktop set to ‘portrait only’ but when I imported it the tablet was in landscape and after the importing it changed to portrait. I then realized that all items were wrong placed, and when I changed the setting and rotated it to landscape, it was ok. I guess that in the import screen the orientation matters, so maybe you may add a check of the template final orientation, or even a pop-up to let the user choose it (the final orientation) before apply.
And last, but maybe this is not so important, what about a setting to disable the scaling? When creating it, or when applying it. Maybe a screen is made to automatically adapt, and the scaling broke some configs (not sure about this last one suggestion, anyway I guess a backup does the trick, not tested)
]]>I just want to ask.
I just want to ask.
Is it possible to control the ‘transparency’ of an item, widget or container? Like the action bars on the Play Store app that disappear gradually as you scroll down or up.
Can this be done? thru scripting? TIA.



D5 Creation