fix manifest - remove unnecessary labels
[apps/core/preloaded/quickpanel.git] / data / quickpanel_brightness.edc
1 //#define DEBUG
2 //#define DEBUG_TEXT
3
4         styles {
5                 style {
6                         name: "checkbox_text";
7                         base: "font=Tizen:style=Regular text_class=tizen font_size=26 color=#FFFFFFFF ellipsis=0.0 wrap=mixed";
8                 }
9         }
10
11         group { name: "quickpanel/brightness_controller/default";
12
13                 script {
14                         public ctnt_shown;
15                         public time_shown;
16                 }
17
18                 parts {
19                         part { name: "base";
20                                 type: RECT;
21                                 repeat_events: 1;
22                                 scale: 1;
23                                 description {
24                                         state: "default" 0.0;
25                                         min: 0 QP_THEME_LIST_ITEM_BRIGHTNESS_HEIGHT;
26                                         max: 9999 QP_THEME_LIST_ITEM_BRIGHTNESS_HEIGHT;
27                                         rel1 {
28                                                 relative: 0.0 0.0;
29                                         }
30                                         rel2 {
31                                                 relative: 1.0 0.0;
32                                         }
33                                         align: 0.0 0.0;
34                                         color: QP_THEME_BG_COLOR;
35                                         visible: QP_THEME_BG_VISIBILITY;
36                                 }
37                         }
38                         part { name: "bg_image";
39                                 mouse_events: 0;
40                                 description {
41                                         state: "default" 0.0;
42                                         rel1.to:"base";
43                                         rel2.to:"base";
44                                         color: QP_THEME_NOTI_BG_COLOR;
45                                 }
46                                 description {
47                                         state: "selected" 0.0;
48                                         inherit: "default" 0.0;
49                                         color: QP_THEME_NOTI_BG_COLOR;
50                                 }
51                         }
52                         part { name: "elm.padding.top";
53                                 type: RECT;
54                                 scale: 1;
55                                 description {
56                                         state: "default" 0.0;
57                                         min: 0 37;
58                                         fixed: 0 1;
59                                         visible: 0;
60                                         rel1.to:"base";
61                                         rel2.to:"base";
62                                         rel2.relative: 1.0 0.0;
63                                         align: 0.0 0.0;
64                                         visible: 0;
65                                 }
66                         }
67                         part { name: "elm.padding.left.bg";
68                                 type: RECT;
69                                 scale: 1;
70                                 description {
71                                         state: "default" 0.0;
72                                         min: 14 0;
73                                         fixed: 1 0;
74                                         rel1.to:"base";
75                                         rel2.to:"base";
76                                         rel2.relative: 0.0 0.0;
77                                         rel2.relative: 0.0 1.0;
78                                         align: 0.0 0.0;
79                                         color: QP_THEME_BG_COLOR;
80                                         visible: QP_THEME_BG_VISIBILITY;
81                                 }
82                         }
83                         part { name: "elm.padding.right.bg";
84                                 type: RECT;
85                                 scale: 1;
86                                 description {
87                                         state: "default" 0.0;
88                                         min: 14 0;
89                                         fixed: 1 0;
90                                         rel1.to:"base";
91                                         rel2.to:"base";
92                                         rel1.relative: 1.0 0.0;
93                                         rel2.relative: 1.0 1.0;
94                                         align: 1.0 0.0;
95                                         color: QP_THEME_BG_COLOR;
96                                         visible: QP_THEME_BG_VISIBILITY;
97                                 }
98                         }
99                         part { name: "elm.content.bg";
100                                 type: RECT;
101                                 scale: 1;
102                                 description {
103                                         state: "default" 0.0;
104                                         min: 14 0;
105                                         fixed: 1 0;
106                                         rel1 {
107                                                 to_x:"elm.padding.left.bg";
108                                                 to_y:"base";
109                                                 relative: 1.0 0.0;
110                                         }
111                                         rel2 {
112                                                 to_x:"elm.padding.right.bg";
113                                                 to_y:"base";
114                                                 relative: 0.0 1.0;
115                                         }
116                                         align: 0.0 0.0;
117                                         visible: 1;
118                                         color: QP_THEME_NOTI_BG_COLOR;
119                                 }
120                         }
121                         part { name: "elm.padding.left";
122                                 type: RECT;
123                                 scale: 1;
124                                 description {
125                                         state: "default" 0.0;
126                                         min: 28 0;
127                                         fixed: 1 0;
128                                         rel1.to:"base";
129                                         rel2.to:"base";
130                                         rel2.relative: 0.0 0.0;
131                                         rel2.relative: 0.0 1.0;
132                                         align: 0.0 0.0;
133                                         visible: 0;
134                                 }
135                         }
136                         part { name: "elm.padding.right";
137                                 type: RECT;
138                                 scale: 1;
139                                 description {
140                                         state: "default" 0.0;
141                                         min: 28 0;
142                                         fixed: 1 0;
143                                         rel1.to:"base";
144                                         rel2.to:"base";
145                                         rel1.relative: 1.0 0.0;
146                                         rel2.relative: 1.0 1.0;
147                                         align: 1.0 0.0;
148                                         visible: 0;
149                                 }
150                         }
151                         part { name: "elm.padding.bottom.check.text";
152                                 type: RECT;
153                                 scale: 1;
154                                 description { state: "default" 0.0;
155                                         min: 0 39;
156                                         fixed: 0 1;
157                                         rel1.to:"base";
158                                         rel2.to:"base";
159                                         rel1.relative: 0.0 1.0;
160                                         rel2.relative: 1.0 1.0;
161                                         align: 0.0 1.0;
162                                         visible: 0;
163                                 }
164                         }
165                         part { name: "elm.padding.bottom";
166                                 type: RECT;
167                                 scale: 1;
168                                 description { state: "default" 0.0;
169                                         min: 0 39;
170                                         fixed: 0 1;
171                                         rel1.to:"base";
172                                         rel2.to:"base";
173                                         rel1.relative: 0.0 1.0;
174                                         rel2.relative: 1.0 1.0;
175                                         align: 0.0 1.0;
176                                         color: QP_THEME_BG_COLOR;
177                                         visible: QP_THEME_BG_VISIBILITY;
178                                 }
179                         }
180                         part { name: "elm.rect.thumbnail";
181                                 type: RECT;
182                                 mouse_events: 0;
183                                 scale: 1;
184                                 description { state: "default" 0.0;
185                                         min: 52 52;
186                                         fixed: 1 1;
187                                         rel1 {
188                                                 to_x:"elm.padding.left";
189                                                 to_y:"elm.padding.top";
190                                                 relative: 1.0 1.0;
191                                         }
192                                         rel2 {
193                                                 to_x:"elm.padding.left";
194                                                 to_y:"elm.padding.top";
195                                                 relative: 1.0 1.0;
196                                         }
197                                         align: 0.0 0.0;
198                                         visible:0;
199                                 }
200                         }
201                         part { name: "elm.swallow.thumbnail";
202                                 type: SWALLOW;
203                                 mouse_events: 0;
204                                 scale: 1;
205                                 description { state: "default" 0.0;
206                                         rel1 {
207                                                 to: "elm.rect.thumbnail";
208                                         }
209                                         rel2 {
210                                                 to: "elm.rect.thumbnail";
211                                         }
212                                 }
213                         }
214                         part { name: "elm.padding.thumbnail.x";
215                                 type: RECT;
216                                 mouse_events: 0;
217                                 scale: 1;
218                                 description { state: "default" 0.0;
219                                         min: 6 0;
220                                         fixed: 1 0;
221                                         rel1 {
222                                                 to:"elm.rect.thumbnail";
223                                                 relative: 1.0 0.0;
224                                         }
225                                         rel2 {
226                                                 to:"elm.rect.thumbnail";
227                                                 relative: 1.0 1.0;
228                                         }
229                                         align: 0.0 0.0;
230                                         visible: 0;
231                                 }
232                         }
233                         part { name: "elm.rect.slider";
234                                 type: RECT;
235                                 mouse_events: 0;
236                                 scale: 1;
237                                 description { state: "default" 0.0;
238                                         min: 0 20;
239                                         fixed: 0 1;
240                                         rel1 {
241                                                 relative: 1.0 0.0;
242                                                 to_x: "elm.padding.thumbnail.x";
243                                                 to_y: "elm.rect.thumbnail";
244                                         }
245                                         rel2 {
246                                                 relative: 0.0 1.0;
247                                                 to_x: "elm.slider.padding.x";
248                                                 to_y: "elm.rect.thumbnail";
249                                         }
250                                         align: 0.0 0.5;
251                                         visible:0;
252                                 }
253                         }
254                         part { name: "elm.swallow.slider";
255                                 type: SWALLOW;
256                                 mouse_events: 1;
257                                 scale: 1;
258                                 description {
259                                         state: "default" 0.0;
260                                         fixed: 1 1;
261                                         rel1 {
262                                                 to: "elm.rect.slider";
263                                         }
264                                         rel2 {
265                                                 to: "elm.rect.slider";
266                                         }
267                                 }
268                         }
269                         part { name: "elm.slider.padding.x";
270                                 type: RECT;
271                                 scale: 1;
272                                 description { state: "default" 0.0;
273                                         min: 22 0;
274                                         fixed: 1 0;
275                                         rel1 {
276                                                 relative: 0.0 0.0;
277                                                 to: "elm.check.rect";
278                                         }
279                                         rel2 {
280                                                 relative: 0.0 1.0;
281                                                 to: "elm.check.rect";
282                                         }
283                                         align: 1.0 0.0;
284                                         visible: 0;
285                                 }
286                         }
287                         part { name: "elm.check.rect";
288                                 type: RECT;
289                                 scale: 1;
290                                 description { state: "default" 0.0;
291                                         min: 48 48;
292                                         fixed: 1 1;
293                                         rel1 {
294                                                 relative: 0.0 0.0;
295                                                 to_x: "elm.check.text.padding.x";
296                                                 to_y: "elm.padding.bottom.check.text";
297                                         }
298                                         rel2 {
299                                                 relative: 0.0 0.0;
300                                                 to_x: "elm.check.text.padding.x";
301                                                 to_y: "elm.padding.bottom.check.text";
302                                         }
303                                         align: 1.0 1.0;
304                                         visible: 0;
305                                 }
306                         }
307                         part { name: "elm.check.swallow";
308                                 type: SWALLOW;
309                                 mouse_events: 1;
310                                 scale: 1;
311                                 description { state: "default" 0.0;
312                                         fixed: 1 1;
313                                         rel1 {
314                                                 to: "elm.check.rect";
315                                         }
316                                         rel2 {
317                                                 to: "elm.check.rect";
318                                         }
319                                 }
320                         }
321                         part { name: "elm.check.text.padding.x";
322                                 type: RECT;
323                                 scale: 1;
324                                 description { state: "default" 0.0;
325                                         min: 8 0;
326                                         fixed: 1 0;
327                                         rel1 {
328                                                 relative: 0.0 0.0;
329                                                 to_x: "elm.check.text.rect";
330                                         }
331                                         rel2 {
332                                                 relative: 0.0 1.0;
333                                                 to_x: "elm.check.text.rect";
334                                         }
335                                         align: 1.0 0.0;
336                                         visible:0;
337                                 }
338                         }
339                         part { name: "elm.check.text.rect";
340                                 type: RECT;
341                                 scale: 1;
342                                 description { state: "default" 0.0;
343                                         fixed: 1 1;
344                                         min: 90 96;
345                                         max: 90 96;
346                                         rel1 {
347                                                 relative: 0.0 0.5;
348                                                 to_x:"elm.padding.right.bg";
349                                                 to_y:"elm.check.rect";
350                                         }
351                                         rel2 {
352                                                 relative: 0.0 0.5;
353                                                 to_x:"elm.padding.right.bg";
354                                                 to_y:"elm.check.rect";
355                                         }
356                                         align: 1.0 0.5;
357                                         visible:0;
358                                 }
359                         }
360                         part { name: "elm.check.text";
361                                 type: TEXTBLOCK;
362                                 multiline: 1;
363                                 mouse_events: 0;
364                                 scale: 1;
365                                 description { state: "default" 0.0;
366                                         rel1 {
367                                                 to: "elm.check.text.rect";
368                                         }
369                                         rel2 {
370                                                 to: "elm.check.text.rect";
371                                         }
372                                         text {
373                                                 style: "checkbox_text";
374                                                 align: 0.0 0.5;
375                                         }
376                                 }
377                         }
378                         part {
379                                 name: "accessibility.check.label";
380                                 type: RECT;
381                                 mouse_events: 1;
382                                 repeat_events: 1;
383                                 scale: 1;
384                                 description {
385                                         state: "default" 0.0;
386                                         rel1 {
387                                                 to: "elm.check.text.rect";
388                                         }
389                                         rel2 {
390                                                 to: "elm.check.text.rect";
391                                         }
392                                         color: QP_ACCESSIBILITY_TEST_COLOR;
393                                         visible: 1;
394                                 }
395                         }
396                 }
397
398                 programs {
399                         program { name: "show_content";
400                                 signal: "elm,state,elm.swallow.slider,active";
401                                 source: "elm";
402                                 script {
403                                         set_state(PART:"elm.swallow.slider", "show", 0.0);
404                                         set_int(ctnt_shown, 1);
405                                 }
406                         }
407                         program { name: "go_active";
408                                 signal: "elm,state,selected";
409                                 source: "elm";
410                                 script {
411                                         set_state(PART:"bg_image", "selected", 0.0);
412                                         set_state(PART:"elm.check.text", "selected", 0.0);
413                                         if (get_int(ctnt_shown) == 1)
414                                         set_state(PART:"elm.swallow.slider", "selected", 0.0);
415                                 }
416                         }
417                         program { name: "go_passive";
418                                 signal: "elm,state,unselected";
419                                 source: "elm";
420                                 script {
421                                         set_state(PART:"bg_image", "default", 0.0);
422                                         set_state(PART:"elm.check.text", "default", 0.0);
423                                         if (get_int(ctnt_shown) == 1)
424                                         set_state(PART:"elm.swallow.slider", "show", 0.0);
425                                 }
426                         }
427                 }
428         }