1 group { name: "e/widgets/syscon/main";
2 images.image: "vgrad_tall.png" COMP;
3 images.image: "bevel_out.png" COMP;
4 images.image: "shine.png" COMP;
5 images.image: "button_normal.png" COMP;
6 images.image: "button_clicked.png" COMP;
8 part { name: "bg"; mouse_events: 0;
9 description { state: "default" 0.0;
10 image.normal: "vgrad_tall.png";
15 part { name: "bevel"; mouse_events: 0;
16 description { state: "default" 0.0;
17 image.normal: "bevel_out.png";
18 image.border: 1 1 1 1;
23 part { name: "e.swallow.main"; type: SWALLOW;
24 description { state: "default" 0.0;
27 rel2.relative: 1.0 0.0;
32 part { name: "e.swallow.secondary"; type: SWALLOW;
33 description { state: "default" 0.0;
34 rel1.to: "e.swallow.main";
35 rel1.relative: 0.0 1.0;
36 rel2.to: "e.swallow.main";
41 part { name: "e.swallow.extra"; type: SWALLOW;
42 description { state: "default" 0.0;
43 rel1.to: "e.swallow.secondary";
44 rel1.relative: 0.0 1.0;
45 rel2.to: "e.swallow.secondary";
51 description { state: "default" 0.0;
52 image.normal: "button_normal.png";
53 image.border: 4 4 3 5;
56 rel1.to: "e.text.label";
58 rel2.to: "e.text.label";
61 description { state: "clicked" 0.0;
62 inherit: "default" 0.0;
63 image.normal: "button_clicked.png";
64 image.border: 5 5 4 6;
67 part { name: "e.text.label"; type: TEXT; mouse_events: 0;
68 effect: SHADOW BOTTOM;
70 description { state: "default" 0.0;
72 rel1.relative: 0.5 0.0;
73 rel1.to_y: "e.swallow.extra";
75 rel2.relative: 0.5 1.0;
76 color: FN_COL_DEFAULT;
77 color_class: "button_text";
79 text { font: FN; size: 10;
88 part { name: "shine"; mouse_events: 0;
89 description { state: "default" 0.0;
90 image.normal: "shine.png";
92 rel2.relative: 1.0 0.0;
100 signal: "mouse,down,1*"; source: "base";
101 action: STATE_SET "clicked" 0.0;
103 target: "e.text.label";
106 signal: "mouse,up,1"; source: "base";
107 action: STATE_SET "default" 0.0;
109 target: "e.text.label";
112 signal: "mouse,clicked,1*"; source: "base";
113 action: SIGNAL_EMIT "e,action,close" "";
118 group { name: "e/widgets/syscon/item/button";
119 alias: "e/desklock/pin_button";
120 images.image: "button_normal.png" COMP;
121 images.image: "button_clicked.png" COMP;
122 images.image: "win_glow.png" COMP;
125 description { state: "default" 0.0;
126 image.normal: "button_normal.png";
127 image.border: 4 4 3 5;
133 description { state: "clicked" 0.0;
134 inherit: "default" 0.0;
135 image.normal: "button_clicked.png";
136 image.border: 5 5 4 6;
139 part { name: "icon_clip"; type: RECT;
140 description { state: "default" 0.0;
142 description { state: "disabled" 0.0;
143 inherit: "default" 0.0;
144 color: 255 255 255 64;
147 part { name: "e.swallow.icon"; type: SWALLOW; mouse_events: 0;
148 clip_to: "icon_clip";
149 description { state: "default" 0.0;
153 rel2.relative: 1.0 0.0;
155 rel2.to_y: "e.text.label";
156 aspect: 1.0 1.0; aspect_preference: VERTICAL;
159 part { name: "label_clip"; type: RECT;
160 description { state: "default" 0.0;
162 description { state: "disabled" 0.0;
163 inherit: "default" 0.0;
167 part { name: "e.text.label"; type: TEXT; mouse_events: 0;
168 effect: SHADOW BOTTOM;
170 clip_to: "label_clip";
171 description { state: "default" 0.0;
172 rel1.relative: 0.0 1.0;
178 color: FN_COL_DEFAULT;
179 color_class: "button_text";
180 text { font: FN; size: 10;
184 text_class: "button";
187 description { state: "disabled" 0.0;
188 inherit: "default" 0.0;
190 color3: 255 255 255 25;
191 color_class: "button_text_disabled";
194 part { name: "label2"; type: TEXT; mouse_events: 0;
195 effect: SHADOW BOTTOM;
197 description { state: "default" 0.0;
198 rel1.to: "e.text.label";
199 rel2.to: "e.text.label";
200 color: FN_COL_DISABLE;
201 color_class: "button_text_disabled";
202 text { font: FN; size: 10;
203 text_source: "e.text.label";
205 text_class: "button";
209 description { state: "disabled" 0.0;
210 inherit: "default" 0.0;
214 part { name: "glow"; mouse_events: 0;
215 description { state: "default" 0.0;
216 image.normal: "win_glow.png";
217 image.border: 9 9 9 9;
224 color: 255 255 255 0;
227 description { state: "focused" 0.0;
228 inherit: "default" 0.0;
229 color: 255 255 255 150;
233 part { name: "event"; type: RECT;
234 ignore_flags: ON_HOLD;
235 description { state: "default" 0.0;
238 description { state: "disabled" 0.0;
239 inherit: "default" 0.0;
246 signal: "mouse,down,1"; source: "event";
247 action: STATE_SET "clicked" 0.0;
251 signal: "mouse,up,1"; source: "event";
252 action: STATE_SET "default" 0.0;
256 signal: "mouse,clicked,1*"; source: "event";
257 action: SIGNAL_EMIT "e,action,click" "";
260 signal: "e,state,disabled"; source: "e";
261 action: STATE_SET "disabled" 0.0;
264 target: "label_clip";
268 signal: "e,state,enabled"; source: "e";
269 action: STATE_SET "default" 0.0;
272 target: "label_clip";
275 program { signal: "e,state,focused"; source: "e";
276 action: STATE_SET "focused" 0.0;
279 program { signal: "e,state,unfocused"; source: "e";
280 action: STATE_SET "default" 0.0;
286 group { name: "e/modules/syscon/button";
287 images.image: "btn_round_0.png" COMP;
288 images.image: "btn_round_1.png" COMP;
289 images.image: "btn_round_2.png" COMP;
292 description { state: "default" 0.0;
293 image.normal: "btn_round_0.png";
294 aspect: 1.0 1.0; aspect_preference: BOTH;
296 description { state: "hilight" 0.0;
297 inherit: "default" 0.0;
298 image.normal: "btn_round_1.png";
300 description { state: "clicked" 0.0;
301 inherit: "default" 0.0;
302 image.normal: "btn_round_2.png";
308 signal: "mouse,down,1"; source: "base";
309 action: STATE_SET "clicked" 0.0;
313 signal: "mouse,up,1"; source: "base";
314 action: STATE_SET "hilight" 0.0;
318 signal: "mouse,in"; source: "base";
319 action: STATE_SET "hilight" 0.0;
323 signal: "mouse,out"; source: "base";
324 action: STATE_SET "default" 0.0;
328 signal: "mouse,clicked,1*"; source: "base";
329 action: SIGNAL_EMIT "e,action,shutdown,show" "e";