1
2#define FN_COL_DEFAULT 255 255 255 255; color3: 0 0 0 128
3#define FN_COL_DISABLE 21 21 21 255; color3: 255 255 255 25;
4#define FN_COL_HIGHLIGHT 51 153 255 255; color2: 51 153 255 24; color3: 51 153 255 18
5#define FIXED_SIZE(_WIDTH, _HEIGHT) \
6   min: _WIDTH _HEIGHT; max: _WIDTH _HEIGHT; fixed: 1 1;
7
8
9collections {
10
11group {
12   name: "efl/list_item:custom";
13   alias: "efl/list_item";
14   data.item: "selectraise" "on";
15   data.item: "focusraise" "on";
16   parts {
17      part { name: "event"; type: RECT;
18         description { state: "default" 0.0;
19            color: 0 0 0 0;
20         }
21         description { state: "disabled" 0.0;
22            inherit: "default" 0.0;
23            visible: 0;
24         }
25      }
26      part { name: "base"; type: RECT; mouse_events: 0;
27         description { state: "default" 0.0;
28            color: 46 46 56 255;
29            color_class: "list_item_base_odd";
30         }
31         description { state: "odd" 0.0;
32            color: 56 56 56 255;
33            color_class: "list_item_base_odd";
34         }
35      }
36      program {
37         signal: "efl,state,odd"; source: "efl";
38         action: STATE_SET "odd" 0.0;
39         target: "base";
40      }
41      program {
42         signal: "efl,state,even"; source: "efl";
43         action: STATE_SET "default" 0.0;
44         target: "base";
45      }
46      part { name: "sel_shadow"; mouse_events: 0;
47         description { state: "default" 0.0;
48            visible: 0;
49         }
50         description { state: "selected" 0.0;
51            inherit: "default" 0.0;
52            visible: 1;
53         }
54      }
55      part { name: "sel_base"; mouse_events: 0;
56         description { state: "default" 0.0;
57            fill.smooth: 0;
58            visible: 0;
59            fill { size { relative: 0.0 1.0; offset: 120 0; } }
60         }
61         description { state: "selected" 0.0;
62            inherit: "default" 0.0;
63            visible: 1;
64         }
65      }
66      part { name: "sel_bevel"; mouse_events: 0;
67         description { state: "default" 0.0;
68            fill.smooth: 0;
69            visible: 0;
70         }
71         description { state: "selected" 0.0;
72            inherit: "default" 0.0;
73            visible: 1;
74         }
75      }
76      program {
77         signal: "efl,state,selected"; source: "efl";
78         action: STATE_SET "selected" 0.0;
79         target: "sel_shadow";
80         target: "sel_base";
81         target: "sel_bevel";
82      }
83      program {
84         signal: "efl,state,unselected"; source: "efl";
85         action: STATE_SET "default" 0.0;
86         target: "sel_shadow";
87         target: "sel_base";
88         target: "sel_bevel";
89      }
90      program {
91         signal: "efl,state,disabled"; source: "efl";
92         action: STATE_SET "disabled" 0.0;
93         target: "event";
94      }
95      program {
96         signal: "efl,state,enabled"; source: "efl";
97         action: STATE_SET "default" 0.0;
98         target: "event";
99      }
100
101      //##//
102      part { name: "efl.text"; type: TEXT; mouse_events: 0;
103         effect: SHADOW BOTTOM;
104         scale: 1;
105         description { state: "default" 0.0;
106            rel1.offset: 2 3;
107            rel1.relative: 1.0 0.0;
108            rel1.to_x: "efl.icon";
109            rel2.offset: -3 -3;
110            rel2.relative: 0.0 1.0;
111            rel2.to_x: "efl.end";
112            color: FN_COL_DEFAULT;
113            color_class: "list_item";
114            text { font: FN; size: 10;
115               min: 1 1;
116               ellipsis: -1;
117               align: 0.0 0.5;
118               text_class: "list_item";
119            }
120         }
121         description { state: "selected" 0.0;
122            inherit: "default" 0.0;
123            visible: 0;
124         }
125         description { state: "disabled" 0.0;
126            inherit: "default" 0.0;
127            visible: 0;
128         }
129      }
130      part { name: "label2"; type: TEXT; mouse_events: 0;
131         effect: SHADOW BOTTOM;
132         scale: 1;
133         description { state: "default" 0.0;
134            rel1.to: "efl.text";
135            rel2.to: "efl.text";
136            color: FN_COL_DISABLE;
137            color_class: "list_item_disabled";
138            text { font: FN; size: 10;
139               text_source: "efl.text";
140               align: 0.0 0.5;
141               text_class: "list_item";
142            }
143            visible: 0;
144         }
145         description { state: "selected" 0.0;
146            inherit: "default" 0.0;
147            visible: 0;
148         }
149         description { state: "disabled" 0.0;
150            inherit: "default" 0.0;
151            visible: 1;
152         }
153      }
154      part { name: "label3"; type: TEXT; mouse_events: 0;
155         effect: GLOW;
156         scale: 1;
157         description { state: "default" 0.0;
158            rel1.offset: -2 -3;
159            rel1.to: "efl.text";
160            rel2.offset: 1 1;
161            rel2.to: "efl.text";
162            color: FN_COL_HIGHLIGHT;
163            color_class: "list_item_selected";
164            text { font: FN; size: 10;
165               text_source: "efl.text";
166               align: 0.0 0.5;
167               text_class: "list_item";
168            }
169            visible: 0;
170         }
171         description { state: "selected" 0.0;
172            inherit: "default" 0.0;
173            visible: 1;
174         }
175         description { state: "disabled" 0.0;
176            inherit: "default" 0.0;
177            visible: 0;
178         }
179      }
180      program {
181         signal: "efl,state,selected"; source: "efl";
182         action: STATE_SET "selected" 0.0;
183         target: "efl.text";
184         target: "label2";
185         target: "label3";
186      }
187      program {
188         signal: "efl,state,unselected"; source: "efl";
189         action: STATE_SET "default" 0.0;
190         target: "efl.text";
191         target: "label2";
192         target: "label3";
193      }
194      program {
195         signal: "efl,state,disabled"; source: "efl";
196         action: STATE_SET "disabled" 0.0;
197         target: "efl.text";
198         target: "label2";
199         target: "label3";
200      }
201      program {
202         signal: "efl,state,enabled"; source: "efl";
203         action: STATE_SET "default" 0.0;
204         target: "efl.text";
205         target: "label2";
206         target: "label3";
207      }
208      //##//
209      part { name: "efl.icon"; type: SWALLOW;
210         description { state: "default" 0.0;
211            fixed: 1 0;
212            align: 0.0 0.5;
213            aspect: 1.0 1.0;
214            rel1.offset: 2 2;
215            rel2.relative: 0.0 1.0;
216            rel2.offset: 2 -3;
217         }
218      }
219      part { name: "efl.end"; type: SWALLOW;
220         description { state: "default" 0.0;
221            fixed: 1 0;
222            align: 1.0 0.5;
223            aspect: 1.0 1.0;
224            rel1.offset: -3 2;
225            rel1.relative: 1.0 0.0;
226            rel2.offset: -3 -3;
227         }
228      }
229      //##//
230
231      part { name: "sel_shine"; mouse_events: 0;
232         description { state: "default" 0.0;
233            rel1.offset: 0 -2;
234            rel1.to: "sel_base";
235            rel2.relative: 1.0 0.0;
236            rel2.offset: -1 2;
237            rel2.to: "sel_base";
238            visible: 0;
239            FIXED_SIZE(69, 5)
240         }
241         description { state: "selected" 0.0;
242            inherit: "default" 0.0;
243            visible: 1;
244         }
245      }
246      part { name: "event_block"; type: RECT;
247         description { state: "default" 0.0;
248            color: 0 0 0 0;
249            visible: 0;
250         }
251         description { state: "disabled" 0.0;
252            inherit: "default" 0.0;
253            visible: 1;
254         }
255      }
256      program {
257         signal: "efl,state,selected"; source: "efl";
258         action: STATE_SET "selected" 0.0;
259         target: "sel_shine";
260      }
261      program {
262         signal: "efl,state,unselected"; source: "efl";
263         action: STATE_SET "default" 0.0;
264         target: "sel_shine";
265      }
266      program {
267         signal: "efl,state,disabled"; source: "efl";
268         action: STATE_SET "disabled" 0.0;
269         target: "event_block";
270      }
271      program {
272         signal: "efl,state,enabled"; source: "efl";
273         action: STATE_SET "default" 0.0;
274         target: "event_block";
275      }
276   }
277}
278
279}
280
281