tizen 2.4 release
[framework/uifw/elementary.git] / data / themes / edc / shelf.edc
1 group { name: "e/shelf/default/base";
2    alias: "e/shelf/alternate/base";
3    data {
4       /* this tells e the shelf is shaped, not rectangular */
5 //      item: "shaped" "1";
6       /* this tells e the number of pixels of the shelf to leave "exposed"
7        * when auto-hiding the shelf */
8       item: "hidden_state_size" "2";
9       /* This makes the border hide instantly after the given amount of
10        * seconds - in this case 3 seconds. This means there will be no
11        * visible part of the shelf after this time at all as it will be
12        * totally hidden */
13 //      item: "instant_delay" "3.0";
14    }
15    images.image: "vgrad_med.png" COMP;
16    images.image: "vgrad_tall.png" COMP;
17    images.image: "bevel_out.png" COMP;
18    images.image: "holes_vert.png" COMP;
19    images.image: "holes_horiz.png" COMP;
20    images.image: "shine.png" COMP;
21    parts {
22       part { name: "bg";
23          description { state: "default" 0.0;
24             image.normal: "vgrad_med.png";
25             fill.smooth: 0;
26             TILED_HORIZ(120)
27             color_class: "shelf_base";
28          }
29          description { state: "vert" 0.0;
30             image.normal: "vgrad_tall.png";
31             fill.smooth: 0;
32             TILED_HORIZ(40)
33             color_class: "shelf_base";
34          }
35       }
36       part { name: "bevel"; mouse_events: 0;
37          description { state: "default" 0.0;
38             image.normal: "bevel_out.png";
39             image.border: 1 1 1 1;
40             image.middle: 0;
41             fill.smooth: 0;
42          }
43       }
44       part { name: "dots_start"; mouse_events: 0;
45          description { state: "default" 0.0;
46             image.normal: "holes_vert.png";
47             rel1.offset: 2 2;
48             rel2.relative: 0.0 1.0;
49             rel2.offset: 5 -3;
50             FIXED_SIZE(4, 14)
51          }
52          description { state: "vert" 0.0;
53             image.normal: "holes_horiz.png";
54             rel1.offset: 2 2;
55             rel2.relative: 1.0 0.0;
56             rel2.offset: -3 5;
57             FIXED_SIZE(14, 4)
58          }
59       }
60       part { name: "dots_end"; mouse_events: 0;
61          description { state: "default" 0.0;
62             image.normal: "holes_vert.png";
63             rel1.relative: 1.0 0.0;
64             rel1.offset: -6 2;
65             rel2.offset: -3 -3;
66             FIXED_SIZE(4, 14)
67          }
68          description { state: "vert" 0.0;
69             image.normal: "holes_horiz.png";
70             rel1.relative: 0.0 1.0;
71             rel1.offset: 2 -6;
72             rel2.offset: -3 -3;
73             FIXED_SIZE(14, 4)
74          }
75       }
76       part { name: "e.swallow.content"; type: SWALLOW;
77          description { state: "default" 0.0;
78             rel1.offset: 1 0;
79             rel1.relative: 1.0 0.0;
80             rel1.to_x: "dots_start";
81             rel2.offset: -2 -1;
82             rel2.to_x: "dots_end";
83             rel2.relative: 0.0 1.0;
84          }
85          description { state: "vert" 0.0;
86             rel1.offset: 0 1;
87             rel1.relative: 0.0 1.0;
88             rel1.to_y: "dots_start";
89             rel2.offset: -1 -2;
90             rel2.to_y: "dots_end";
91             rel2.relative: 1.0 0.0;
92          }
93       }
94       part { name: "shine"; mouse_events: 0;
95          description { state: "default" 0.0;
96             image.normal: "shine.png";
97             rel1.offset: 0 -2;
98             rel2.relative: 1.0 0.0;
99             rel2.offset: -1 2;
100             FIXED_SIZE(69, 5)
101          }
102       }
103       programs  {
104 #define ORIENT_SATE(_ORIENT, _STATE) \
105          program { \
106             signal: "e,state,orientation,"_ORIENT; source: "e"; \
107             action: STATE_SET _STATE 0.0; \
108             target: "bg"; \
109             target: "e.swallow.content"; \
110             target: "dots_start"; \
111             target: "dots_end"; \
112          }
113       }
114       ORIENT_SATE("top", "default")
115       ORIENT_SATE("top_left", "default")
116       ORIENT_SATE("top_right", "default")
117       ORIENT_SATE("bottom", "default")
118       ORIENT_SATE("bottom_left", "default")
119       ORIENT_SATE("bottom_right", "default")
120       ORIENT_SATE("left", "vert")
121       ORIENT_SATE("left_top", "vert")
122       ORIENT_SATE("left_bottom", "vert")
123       ORIENT_SATE("right", "vert")
124       ORIENT_SATE("right_top", "vert")
125       ORIENT_SATE("right_bottom", "vert")
126 #undef ORIENT_SATE
127    }
128 }
129
130 group { name: "e/shelf/default/inset";
131    alias: "e/shelf/alternate/inset";
132    alias: "e/shelf/invisible/inset";
133    alias: "e/shelf/translucent/inset";
134    images.image: "horiz_bar_inset.png" COMP;
135    images.image: "vert_bar_inset.png" COMP;
136    parts {
137       part { name: "base"; type: RECT;
138          description { state: "default" 0.0;
139             color: 0 0 0 0;
140          }
141       }
142       part { name: "clip"; type: RECT; mouse_events: 0;
143          description { state: "default" 0.0;
144             rel1.offset: 3 1;
145             rel2.offset: -4 -2;
146             color: 255 255 255 255;
147          }
148          description { state: "vert" 0.0;
149             rel1.offset: 1 3;
150             rel2.offset: -2 -4;
151             color: 255 255 255 255;
152          }
153       }
154       part { name: "e.swallow.content"; type: SWALLOW;
155          clip_to: "clip";
156          description { state: "default" 0.0;
157             rel1.offset: 4 1;
158             rel2.offset: -5 -2;
159          }
160          description { state: "vert" 0.0;
161             rel1.offset: 1 4;
162             rel2.offset: -2 -5;
163          }
164       }
165       part { name: "inset"; mouse_events: 0;
166          description { state: "default" 0.0;
167             rel1.offset: 2 0;
168             rel2.offset: -3 -1;
169             image.normal: "horiz_bar_inset.png";
170             image.border: 7 7 1 1;
171             image.middle: 0;
172             fill.smooth: 0;
173          }
174          description { state: "vert" 0.0;
175             rel1.offset: 0 2;
176             rel2.offset: -1 -3;
177             image.normal: "vert_bar_inset.png";
178             image.border: 1 1 8 6;
179             image.middle: 0;
180             fill.smooth: 0;
181          }
182       }
183    }
184    programs {
185 #define ORIENT_SATE(_ORIENT, _STATE) \
186          program { \
187             signal: "e,state,orientation,"_ORIENT; source: "e"; \
188             action: STATE_SET _STATE 0.0; \
189             target: "e.swallow.content"; \
190             target: "inset"; \
191             target: "clip"; \
192          }
193       ORIENT_SATE("top", "default")
194       ORIENT_SATE("top_left", "default")
195       ORIENT_SATE("top_right", "default")
196       ORIENT_SATE("bottom", "default")
197       ORIENT_SATE("bottom_left", "default")
198       ORIENT_SATE("bottom_right", "default")
199       ORIENT_SATE("left", "vert")
200       ORIENT_SATE("left_top", "vert")
201       ORIENT_SATE("left_bottom", "vert")
202       ORIENT_SATE("right", "vert")
203       ORIENT_SATE("right_top", "vert")
204       ORIENT_SATE("right_bottom", "vert")
205 #undef ORIENT_SATE
206    }
207 }
208
209 group { name: "e/shelf/invisible/base";
210    inherit: "e/shelf/default/base";
211    data {
212       item: "shaped" "1";
213    }
214    parts {
215       part { name: "bg";
216          description { state: "default" 0.0;
217             visible: 0;
218          }
219          description { state: "vert" 0.0;
220             visible: 0;
221          }
222       }
223       part { name: "bevel";
224          description { state: "default" 0.0;
225             visible: 0;
226          }
227       }
228       part { name: "shine";
229          description { state: "default" 0.0;
230             visible: 0;
231          }
232       }
233       part { name: "dots_start"; mouse_events: 1;
234          description { state: "default" 0.0;
235             rel1.offset: 0 0;
236             rel2.offset: -1 -1;
237             min: 0 0;
238             max: 0 0;
239             visible: 0;
240          }
241          description { state: "vert" 0.0;
242             rel1.offset: 0 0;
243             rel2.offset: -1 -1;
244             min: 0 0;
245             max: 0 0;
246             visible: 0;
247          }
248       }
249       part { name: "dots_end";
250          description { state: "default" 0.0;
251             rel1.offset: 0 0;
252             rel2.offset: -1 -1;
253             min: 0 0;
254             max: 0 0;
255             visible: 0;
256          }
257          description { state: "vert" 0.0;
258             rel1.offset: 0 0;
259             rel2.offset: -1 -1;
260             min: 0 0;
261             max: 0 0;
262             visible: 0;
263          }
264       }
265    }
266 }
267
268 group { name: "e/shelf/translucent/base";
269    inherit: "e/shelf/default/base";
270    data {
271       item: "shaped" "1";
272    }
273    parts {
274       part { name: "bg";
275          description { state: "default" 0.0;
276             color: 127 127 127 135;
277          }
278          description { state: "vert" 0.0;
279             color: 127 127 127 135;
280          }
281       }
282       part { name: "bevel";
283          description { state: "default" 0.0;
284             color: 127 127 127 135;
285          }
286       }
287       part { name: "shine";
288          description { state: "default" 0.0;
289             color: 127 127 127 135;
290          }
291       }
292    }
293 }
294
295 group { name: "e/shelf/default/plain";
296    alias: "e/shelf/alternate/plain";
297    alias: "e/shelf/invisible/plain";
298    alias: "e/shelf/translucent/plain";
299    parts {
300       part { name: "base"; type: RECT;
301          description { state: "default" 0.0;
302             color: 0 0 0 0;
303          }
304       }
305       part { name: "clip"; type: RECT; mouse_events: 0;
306          description { state: "default" 0.0;
307             color: 255 255 255 255;
308          }
309       }
310       part { name: "e.swallow.content"; type: SWALLOW;
311          clip_to: "clip";
312          description { state: "default" 0.0;
313             rel1.offset: 1 1;
314             rel2.offset: -2 -2;
315          }
316       }
317    }
318 }