fix button focus glow to not be a few pixels off and look screwed.

devs/sachiel/e19
Carsten Haitzler 11 years ago
parent 942b0a2b5f
commit 00e1cf45fb
  1. 21
      data/themes/edc/button.edc

@ -114,15 +114,26 @@
visible: 1;
}
}
part { name: "base2"; type: SPACER;
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
rel1.offset: 1 1;
rel2.offset: -2 -2;
}
}
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: -1 -1;
rel2.to: "base";
rel2.offset: 1 1;
rel1.to: "base2";
rel1.offset: -2 -3;
rel2.to: "base2";
rel2.offset: 1 0;
fill.smooth: 0;
color: 255 255 255 0;
visible: 0;
@ -149,11 +160,13 @@
signal: "mouse,down,1"; source: "event";
action: STATE_SET "clicked" 0.0;
target: "base";
target: "base2";
}
program {
signal: "mouse,up,1"; source: "event";
action: STATE_SET "default" 0.0;
target: "base";
target: "base2";
}
program {
signal: "mouse,clicked,1*"; source: "event";

Loading…
Cancel
Save