You can found the option in the properties box (pencil icon in the bottom bar), box content color can be configured for normal, pressed or focused state (if expert mode is checked), and the selection effect option can be found in the last properties tab.
Yeah i got it. But I realized that the color effect is underneath the widget. So if the widget’s background is full in it’s grid size (no paddding, no margin) i cant see the appearance of color effect. Any way to creat the effect that appears above the item?
if do like that, i cant use the widget’s function. this launcher combine with fully customisation widgets as zooper or uccw can creat many amazing theme.
I did following your guide and i have got color effect. But there were some issues:
1: when change color state of main widget, the color effect didnt change according to.
2: it block clickable function of main widget. For ex: i have news widget that have refresh button but when tap on that button, i didnt work as normal. It was blocked by the invisible item.
< ![CDATA[
Which kind of effect?
]]>
< ![CDATA[
Color changing. It looks like when i tap on an app icon ( the white color appear when tap on icon)
]]>
< ![CDATA[
You can found the option in the properties box (pencil icon in the bottom bar), box content color can be configured for normal, pressed or focused state (if expert mode is checked), and the selection effect option can be found in the last properties tab.
]]>
< ![CDATA[
Yeah i got it. But I realized that the color effect is underneath the widget. So if the widget’s background is full in it’s grid size (no paddding, no margin) i cant see the appearance of color effect. Any way to creat the effect that appears above the item?
]]>
< ![CDATA[
You may create another blank item and place it over the widget, and configure it to launch some app or shortcut?
]]>
< ![CDATA[
if do like that, i cant use the widget’s function. this launcher combine with fully customisation widgets as zooper or uccw can creat many amazing theme.
]]>
< ![CDATA[
Then do this:
– keep the invisible item over the widget, and give it the name ‘overlay’
– set the invisible item to non clickable (last tab in the properties box)
– edit the widget properties and set the touch event to run this script:
var color = null;
switch(event.getAction()) {
case MotionEvent.ACTION_DOWN: color = 0x60ff0000; break;
case MotionEvent.ACTION_UP: color = 0x00000000; break;
}
if(color != null) {
var ed = item.getParent().getItemByName(‘overlay’).getProperties().edit();
ed.getBox(‘i.box’).setColor(“c”, “n”, color);
ed.commit();
}
item.getRootView().getChildAt(0).getChildAt(0).getChildAt(0).dispatchTouchEvent(event);
return false;
Hackish, but should work.
]]>
< ![CDATA[
I did following your guide and i have got color effect. But there were some issues:
1: when change color state of main widget, the color effect didnt change according to.
2: it block clickable function of main widget. For ex: i have news widget that have refresh button but when tap on that button, i didnt work as normal. It was blocked by the invisible item.
]]>
< ![CDATA[
I don’t know why, it worked for me…
]]>