forked from enlightenment/efl
e syscon buttons now implement focus glow
This commit is contained in:
parent
16199ba990
commit
eebaf5f24e
|
@ -119,6 +119,7 @@ group { name: "e/widgets/syscon/item/button";
|
|||
alias: "e/desklock/pin_button";
|
||||
images.image: "button_normal.png" COMP;
|
||||
images.image: "button_clicked.png" COMP;
|
||||
images.image: "win_glow.png" COMP;
|
||||
parts {
|
||||
part { name: "base";
|
||||
description { state: "default" 0.0;
|
||||
|
@ -210,6 +211,25 @@ group { name: "e/widgets/syscon/item/button";
|
|||
visible: 1;
|
||||
}
|
||||
}
|
||||
part { name: "glow"; mouse_events: 0;
|
||||
description { state: "default" 0.0;
|
||||
image.normal: "win_glow.png";
|
||||
image.border: 9 9 9 9;
|
||||
image.middle: 0;
|
||||
rel1.to: "base";
|
||||
rel1.offset: -2 -3;
|
||||
rel2.to: "base";
|
||||
rel2.offset: 1 0;
|
||||
fill.smooth: 0;
|
||||
color: 255 255 255 0;
|
||||
visible: 0;
|
||||
}
|
||||
description { state: "focused" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 150;
|
||||
visible: 1;
|
||||
}
|
||||
}
|
||||
part { name: "event"; type: RECT;
|
||||
ignore_flags: ON_HOLD;
|
||||
description { state: "default" 0.0;
|
||||
|
@ -252,5 +272,13 @@ group { name: "e/widgets/syscon/item/button";
|
|||
target: "label_clip";
|
||||
target: "label2";
|
||||
}
|
||||
program { signal: "e,state,focused"; source: "e";
|
||||
action: STATE_SET "focused" 0.0;
|
||||
target: "glow";
|
||||
}
|
||||
program { signal: "e,state,unfocused"; source: "e";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "glow";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue