1 group { name: "e/widgets/button";
2 images.image: "button_normal.png" COMP;
3 images.image: "button_clicked.png" COMP;
4 images.image: "win_glow.png" COMP;
7 description { state: "default" 0.0;
8 image.normal: "button_normal.png";
15 description { state: "clicked" 0.0;
16 inherit: "default" 0.0;
17 image.normal: "button_clicked.png";
18 image.border: 5 5 4 6;
21 part { name: "icon_clip"; type: RECT;
22 description { state: "default" 0.0;
24 description { state: "disabled" 0.0;
25 inherit: "default" 0.0;
26 color: 255 255 255 64;
29 part { name: "e.swallow.icon"; type: SWALLOW; mouse_events: 0;
31 description { state: "default" 0.0;
35 rel2.relative: 0.0 1.0;
39 description { state: "combo" 0.0;
40 inherit: "default" 0.0;
41 aspect: 1.0 1.0; aspect_preference: VERTICAL;
43 description { state: "icon" 0.0;
44 inherit: "default" 0.0;
46 aspect: 1.0 1.0; aspect_preference: BOTH;
48 rel2.relative: 1.0 1.0;
52 part { name: "label_clip"; type: RECT;
53 description { state: "default" 0.0;
55 description { state: "disabled" 0.0;
56 inherit: "default" 0.0;
60 part { name: "e.text.label"; type: TEXT; mouse_events: 0;
61 effect: SHADOW BOTTOM;
63 clip_to: "label_clip";
64 description { state: "default" 0.0;
70 color_class: "button_text";
71 color3: 255 255 255 255;
72 text { font: FN; size: 10;
79 description { state: "disabled" 0.0;
80 inherit: "default" 0.0;
81 color_class: "button_text_disabled";
82 color3: 255 255 255 255;
84 description { state: "combo" 0.0;
85 inherit: "default" 0.0;
86 rel1.relative: 1.0 0.0;
88 rel1.to_x: "e.swallow.icon";
90 description { state: "icon" 0.0;
91 inherit: "default" 0.0;
95 part { name: "label2"; type: TEXT; mouse_events: 0;
96 effect: SHADOW BOTTOM;
98 description { state: "default" 0.0;
99 rel1.to: "e.text.label";
100 rel2.to: "e.text.label";
101 color_class: "button_text_disabled";
102 color3: 255 255 255 255;
103 text { font: FN; size: 10;
104 text_source: "e.text.label";
106 text_class: "button";
110 description { state: "disabled" 0.0;
111 inherit: "default" 0.0;
115 part { name: "base2"; type: SPACER;
116 description { state: "default" 0.0;
120 description { state: "clicked" 0.0;
121 inherit: "default" 0.0;
126 part { name: "glow"; mouse_events: 0;
127 description { state: "default" 0.0;
128 image.normal: "win_glow.png";
129 image.border: 9 9 9 9;
136 color: 255 255 255 0;
139 description { state: "focused" 0.0;
140 inherit: "default" 0.0;
141 color: 255 255 255 150;
145 part { name: "event"; type: RECT;
146 ignore_flags: ON_HOLD;
147 description { state: "default" 0.0;
150 description { state: "disabled" 0.0;
151 inherit: "default" 0.0;
158 signal: "mouse,down,1"; source: "event";
159 action: STATE_SET "clicked" 0.0;
164 signal: "mouse,up,1"; source: "event";
165 action: STATE_SET "default" 0.0;
170 signal: "mouse,clicked,1*"; source: "event";
171 action: SIGNAL_EMIT "e,action,click" "";
174 signal: "e,state,text"; source: "e";
175 action: STATE_SET "default" 0.0;
176 target: "e.swallow.icon";
177 target: "e.text.label";
180 signal: "e,state,icon"; source: "e";
181 action: STATE_SET "icon" 0.0;
182 target: "e.swallow.icon";
183 target: "e.text.label";
186 signal: "e,state,combo"; source: "e";
187 action: STATE_SET "combo" 0.0;
188 target: "e.swallow.icon";
189 target: "e.text.label";
192 signal: "e,state,disabled"; source: "e";
193 action: STATE_SET "disabled" 0.0;
196 target: "label_clip";
200 signal: "e,state,enabled"; source: "e";
201 action: STATE_SET "default" 0.0;
204 target: "label_clip";
207 program { signal: "e,state,focused"; source: "e";
208 action: STATE_SET "focused" 0.0;
211 program { signal: "e,state,unfocused"; source: "e";
212 action: STATE_SET "default" 0.0;