summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 18:33:24 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 20:00:21 +0900
commite12ef1309352d1f9054267bd7a040b1aec7f0666 (patch)
tree45a60424b34144123eb8c13d3f5e8477de0ab796
parent1dee128daa72cc8516640fd7be973f5db6b9ad16 (diff)
theme: list - remove elm scroller, elm list item inheritance.
-rw-r--r--data/elementary/themes/default.edc2
-rw-r--r--data/elementary/themes/edc/efl/list.edc292
2 files changed, 289 insertions, 5 deletions
diff --git a/data/elementary/themes/default.edc b/data/elementary/themes/default.edc
index 2de68596f5..3b851409f5 100644
--- a/data/elementary/themes/default.edc
+++ b/data/elementary/themes/default.edc
@@ -169,9 +169,9 @@ collections {
169#include "edc/efl/button.edc" 169#include "edc/efl/button.edc"
170#include "edc/efl/calendar.edc" 170#include "edc/efl/calendar.edc"
171#include "edc/efl/nstate.edc" 171#include "edc/efl/nstate.edc"
172#include "edc/efl/list.edc"
173// XXX: mobile mode needs invisible scrollers... make signals that do this 172// XXX: mobile mode needs invisible scrollers... make signals that do this
174#include "edc/efl/scroller.edc" 173#include "edc/efl/scroller.edc"
174#include "edc/efl/list.edc"
175// XXX: mobile mode needs different entry setup 175// XXX: mobile mode needs different entry setup
176#include "edc/efl/text.edc" 176#include "edc/efl/text.edc"
177#include "edc/efl/frame.edc" 177#include "edc/efl/frame.edc"
diff --git a/data/elementary/themes/edc/efl/list.edc b/data/elementary/themes/edc/efl/list.edc
index ae252b9413..4b309c8ce5 100644
--- a/data/elementary/themes/edc/efl/list.edc
+++ b/data/elementary/themes/edc/efl/list.edc
@@ -1,8 +1,292 @@
1group { "efl/view_list"; 1group { "efl/view_list";
2 inherit: "elm/list/base/default"; 2 inherit: "efl/scroller";
3} 3}
4 4
5group { "efl/list/item"; 5group { name: "efl/list/item";
6 inherit: "elm/list/item/default"; 6 data.item: "selectraise" "on";
7} 7 data.item: "focusraise" "on";
8 images.image: "bevel_curved_horiz_out.png" COMP;
9 images.image: "shadow_rounded_horiz.png" COMP;
10 images.image: "vgrad_med_dark.png" COMP;
11 images.image: "bevel_horiz_out.png" COMP;
12 images.image: "shine.png" COMP;
13 parts {
14 part { name: "event"; type: RECT;
15 description { state: "default" 0.0;
16 color: 0 0 0 0;
17 }
18 description { state: "disabled" 0.0;
19 inherit: "default" 0.0;
20 visible: 0;
21 }
22 }
23 part { name: "base"; type: RECT; mouse_events: 0;
24 description { state: "default" 0.0;
25 color: 64 64 64 255;
26 color_class: "list_item_base";
27 }
28 description { state: "odd" 0.0;
29 color: 56 56 56 255;
30 color_class: "list_item_base_odd";
31 }
32 }
33 program {
34 signal: "elm,state,odd"; source: "elm";
35 action: STATE_SET "odd" 1.0;
36 target: "base";
37 }
38 program {
39 signal: "elm,state,even"; source: "elm";
40 action: STATE_SET "default" 0.0;
41 target: "base";
42 }
43 part { name: "bevel"; mouse_events: 0;
44 description { state: "default" 0.0;
45 image.normal: "bevel_curved_horiz_out.png";
46 image.border: 0 0 2 2;
47 image.middle: 0;
48 fill.smooth: 0;
49 }
50 }
51 part { name: "sel_shadow"; mouse_events: 0;
52 description { state: "default" 0.0;
53 image.normal: "shadow_rounded_horiz.png";
54 image.border: 0 0 9 9;
55 rel1.offset: 0 -4;
56 rel2.offset: -1 5;
57 fill.smooth: 0;
58 visible: 0;
59 }
60 description { state: "selected" 0.0;
61 inherit: "default" 0.0;
62 visible: 1;
63 }
64 }
65 part { name: "sel_base"; mouse_events: 0;
66 description { state: "default" 0.0;
67 image.normal: "vgrad_med_dark.png";
68 fill.smooth: 0;
69 visible: 0;
70 TILED_HORIZ(120)
71 }
72 description { state: "selected" 0.0;
73 inherit: "default" 0.0;
74 visible: 1;
75 }
76 }
77 part { name: "sel_bevel"; mouse_events: 0;
78 description { state: "default" 0.0;
79 image.normal: "bevel_horiz_out.png";
80 image.border: 0 0 2 2;
81 image.middle: 0;
82 fill.smooth: 0;
83 visible: 0;
84 }
85 description { state: "selected" 0.0;
86 inherit: "default" 0.0;
87 visible: 1;
88 }
89 }
90 program {
91 signal: "elm,state,selected"; source: "elm";
92 action: STATE_SET "selected" 0.0;
93 target: "sel_shadow";
94 target: "sel_base";
95 target: "sel_bevel";
96 }
97 program {
98 signal: "elm,state,unselected"; source: "elm";
99 action: STATE_SET "default" 0.0;
100 target: "sel_shadow";
101 target: "sel_base";
102 target: "sel_bevel";
103 }
104 program {
105 signal: "elm,state,disabled"; source: "elm";
106 action: STATE_SET "disabled" 0.0;
107 target: "event";
108 }
109 program {
110 signal: "elm,state,enabled"; source: "elm";
111 action: STATE_SET "default" 0.0;
112 target: "event";
113 }
114
115 //##//
116 part { name: "elm.text"; type: TEXT; mouse_events: 0;
117 effect: SHADOW BOTTOM;
118 scale: 1;
119 description { state: "default" 0.0;
120 rel1.offset: 2 3;
121 rel1.relative: 1.0 0.0;
122 rel1.to_x: "elm.swallow.icon";
123 rel2.offset: -3 -3;
124 rel2.relative: 0.0 1.0;
125 rel2.to_x: "elm.swallow.end";
126 color: FN_COL_DEFAULT;
127 color_class: "list_item";
128 text { font: FN; size: 10;
129 min: 1 1;
130 ellipsis: -1;
131 align: 0.0 0.5;
132 text_class: "list_item";
133 }
134 }
135 description { state: "selected" 0.0;
136 inherit: "default" 0.0;
137 visible: 0;
138 }
139 description { state: "disabled" 0.0;
140 inherit: "default" 0.0;
141 visible: 0;
142 }
143 }
144 part { name: "label2"; type: TEXT; mouse_events: 0;
145 effect: SHADOW BOTTOM;
146 scale: 1;
147 description { state: "default" 0.0;
148 rel1.to: "elm.text";
149 rel2.to: "elm.text";
150 color: FN_COL_DISABLE;
151 color_class: "list_item_disabled";
152 text { font: FN; size: 10;
153 text_source: "elm.text";
154 align: 0.0 0.5;
155 text_class: "list_item";
156 }
157 visible: 0;
158 }
159 description { state: "selected" 0.0;
160 inherit: "default" 0.0;
161 visible: 0;
162 }
163 description { state: "disabled" 0.0;
164 inherit: "default" 0.0;
165 visible: 1;
166 }
167 }
168 part { name: "label3"; type: TEXT; mouse_events: 0;
169 effect: GLOW;
170 scale: 1;
171 description { state: "default" 0.0;
172 rel1.offset: -2 -3;
173 rel1.to: "elm.text";
174 rel2.offset: 1 1;
175 rel2.to: "elm.text";
176 color: FN_COL_HIGHLIGHT;
177 color_class: "list_item_selected";
178 text { font: FN; size: 10;
179 text_source: "elm.text";
180 align: 0.0 0.5;
181 text_class: "list_item";
182 }
183 visible: 0;
184 }
185 description { state: "selected" 0.0;
186 inherit: "default" 0.0;
187 visible: 1;
188 }
189 description { state: "disabled" 0.0;
190 inherit: "default" 0.0;
191 visible: 0;
192 }
193 }
194 program {
195 signal: "elm,state,selected"; source: "elm";
196 action: STATE_SET "selected" 0.0;
197 target: "elm.text";
198 target: "label2";
199 target: "label3";
200 }
201 program {
202 signal: "elm,state,unselected"; source: "elm";
203 action: STATE_SET "default" 0.0;
204 target: "elm.text";
205 target: "label2";
206 target: "label3";
207 }
208 program {
209 signal: "elm,state,disabled"; source: "elm";
210 action: STATE_SET "disabled" 0.0;
211 target: "elm.text";
212 target: "label2";
213 target: "label3";
214 }
215 program {
216 signal: "elm,state,enabled"; source: "elm";
217 action: STATE_SET "default" 0.0;
218 target: "elm.text";
219 target: "label2";
220 target: "label3";
221 }
222 //##//
223 part { name: "elm.swallow.icon"; type: SWALLOW;
224 description { state: "default" 0.0;
225 fixed: 1 0;
226 align: 0.0 0.5;
227 aspect: 1.0 1.0;
228 rel1.offset: 2 2;
229 rel2.relative: 0.0 1.0;
230 rel2.offset: 2 -3;
231 }
232 }
233 part { name: "elm.swallow.end"; type: SWALLOW;
234 description { state: "default" 0.0;
235 fixed: 1 0;
236 align: 1.0 0.5;
237 aspect: 1.0 1.0;
238 rel1.offset: -3 2;
239 rel1.relative: 1.0 0.0;
240 rel2.offset: -3 -3;
241 }
242 }
243 //##//
8 244
245 part { name: "sel_shine"; mouse_events: 0;
246 description { state: "default" 0.0;
247 image.normal: "shine.png";
248 rel1.offset: 0 -2;
249 rel1.to: "sel_base";
250 rel2.relative: 1.0 0.0;
251 rel2.offset: -1 2;
252 rel2.to: "sel_base";
253 visible: 0;
254 FIXED_SIZE(69, 5)
255 }
256 description { state: "selected" 0.0;
257 inherit: "default" 0.0;
258 visible: 1;
259 }
260 }
261 part { name: "event_block"; type: RECT;
262 description { state: "default" 0.0;
263 color: 0 0 0 0;
264 visible: 0;
265 }
266 description { state: "disabled" 0.0;
267 inherit: "default" 0.0;
268 visible: 1;
269 }
270 }
271 program {
272 signal: "elm,state,selected"; source: "elm";
273 action: STATE_SET "selected" 0.0;
274 target: "sel_shine";
275 }
276 program {
277 signal: "elm,state,unselected"; source: "elm";
278 action: STATE_SET "default" 0.0;
279 target: "sel_shine";
280 }
281 program {
282 signal: "elm,state,disabled"; source: "elm";
283 action: STATE_SET "disabled" 0.0;
284 target: "event_block";
285 }
286 program {
287 signal: "elm,state,enabled"; source: "elm";
288 action: STATE_SET "default" 0.0;
289 target: "event_block";
290 }
291 }
292} \ No newline at end of file