tizen 2.3.1 release
[apps/home/b2-clocksetting.git] / data / changeable / groups / brightness_layout.edc
1 /*
2  *  Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  *  Licensed under the Flora License, Version 1.0 (the License);
5  *  you may not use this file except in compliance with the License.
6  *  You may obtain a copy of the License at
7  *
8  *      http://floralicense.org/license/
9  *
10  *  Unless required by applicable law or agreed to in writing, software
11  *  distributed under the License is distributed on an AS IS BASIS,
12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *  See the License for the specific language governing permissions and
14  *  limitations under the License.
15  *
16  */
17 group { name: "setting/brightness_layout";
18   styles{
19       style { name: "custom_style2";
20          base: "font=Tizen:style=Regular font_size="50" align=center color=""#FFFFFF"" wtext_class=tizen";
21          tag:  "br" "\n";
22          tag:  "hilight" "+ font_weight=Bold";
23          tag:  "b" "+ font_weight=Bold";
24          tag:  "tab" "\t";
25       }
26       style { name: "outdoor_style2";
27          base: "font=Tizen:style=Regular font_size="25" align=center color=#FF9100 text_class=tizen";
28          tag:  "br" "\n";
29          tag:  "hilight" "+ font_weight=Bold";
30          tag:  "b" "+ font_weight=Bold";
31          tag:  "tab" "\t";
32       }
33   }
34   
35   images {
36         image: "tw_number_controller_icon_brightness.png" COMP;
37         image: "tw_number_controller_icon_brightness_1.png" COMP;
38         image: "tw_number_controller_icon_brightness_2.png" COMP;
39         image: "tw_number_controller_icon_brightness_3.png" COMP;
40         image: "tw_number_controller_icon_brightness_4.png" COMP;
41         image: "tw_number_controller_icon_brightness_5.png" COMP;
42   }
43   
44   parts {
45     part { name: "bg";
46       type: RECT;
47       scale: 1;
48       description { state: "default";
49         rel1 { relative: 0.0 0.0; }
50         rel2 { relative: 1.0 1.0; }
51         color_class: "B011";
52       }
53     }
54     part { name: "top_padding";
55        type: SPACER;
56        scale: 1;
57        description { state: "default" 0.0;
58           min: 0 5;
59           max: -1 5;
60           fixed: 0 1;
61           align: 0.5 0.0;
62           rel2.relative: 1.0 0.0;
63        }
64     }
65     part { name: "bottom_padding";
66        type: SPACER;
67        scale: 1;
68        description { state: "default" 0.0;
69           min: 0 28;
70           max: -1 28;
71           fixed: 0 1;
72           align: 0.5 1.0;
73           rel1.relative: 0.0 1.0;
74        }
75     }
76     part { name: "left_padding";
77        type: SPACER;
78        scale: 1;
79        description { state: "default" 0.0;
80           min: 16 0;
81           max: 16 -1;
82           fixed: 1 0;
83           align: 0.0 0.5;
84           rel2.relative: 0.0 1.0;
85        }
86     }
87     part { name: "right_padding";
88        type: SPACER;
89        scale: 1;
90        description { state: "default" 0.0;
91           min: 16 0;
92           max: 16 -1;
93           fixed: 1 0;
94           align: 1.0 0.5;
95           rel1.relative: 1.0 0.0;
96        }
97     }
98     part { name: "elm.text.bg";
99         type: RECT;
100         scale: 1;
101         description {
102                 state: "default" 0.0;
103                 min: 80 80;
104                 max: 80 80;
105                 rel1 {
106                  to_x: "left_padding";
107                  to_y: "top_padding";
108                  relative: 0 1;
109                  offset: 5 50;
110                 }
111                 rel2 {
112                  to_x: "right_padding";
113                  to_y: "top_padding";
114                  relative: 0 1;
115                  offset: 0 130;
116                 }
117                 color: 53 53 53 255;
118                 visible : 0;
119         }
120     }
121     part { name: "elm.text";
122        type: TEXTBLOCK;
123        scale: 1;
124        description { state: "default" 0.0;
125           min: 80 50;
126           max: 80 50;
127           rel1 {
128              to_x: "left_padding";
129              to_y: "top_padding";
130              relative: 0 1;
131              offset: 5 50;
132           }
133           rel2 {
134              to_x: "right_padding";
135              to_y: "top_padding";
136              relative: 0 1;
137              offset: 0 100;
138           }
139           text {
140              style: "custom_style2";
141              align: 0.5 0.5;
142              min: 1 1;
143           }
144           visible: 0;
145        }
146     }
147     part { name: "elm.icon.1";
148       type: SWALLOW;
149       scale: 1;
150       description { state: "default" 0.0;
151          min: 0 48;
152          fixed: 1 1;
153          align: 0.5 0.0;
154          rel1 {
155            to_x: "left_padding";
156            to_y: "elm.text";
157            relative: 1 1;
158            offset: 55 0;
159          }
160          rel2 {
161            to_x: "right_padding";
162            to_y: "elm.text";
163            relative: 0 1;
164            offset: 0 48;
165          }
166       }
167     }
168     part { name: "brightness.icon";
169         type: IMAGE;
170         scale: 1;
171         description {
172                 state: "default" 0.0;
173                 min: 48 48;
174                 max: 48 48;
175                 fixed: 1 1;
176                 rel1 {
177                         to_x: "bg";
178                         to_y: "elm.text";
179                         relative: 0 1;
180                         offset: 0 0;
181                 }
182                 rel2 {
183                         to_x: "elm.icon.1";
184                         to_y: "elm.text";
185                         relative: 0 1;
186                         offset: -7 48;
187                 }
188                 image.normal: "tw_number_controller_icon_brightness_1.png";
189                 color_class: "W173L1";
190         }
191         description {
192                 state: "level2" 0.0;
193                 inherit: "default" 0.0;
194                 image.normal: "tw_number_controller_icon_brightness_2.png";
195                 color_class: "W173L1";
196         }
197         description {
198                 state: "level3" 0.0;
199                 inherit: "default" 0.0;
200                 image.normal: "tw_number_controller_icon_brightness_3.png";
201                 color_class: "W173L1";
202         }
203         description {
204                 state: "level4" 0.0;
205                 inherit: "default" 0.0;
206                 image.normal: "tw_number_controller_icon_brightness_4.png";
207                 color_class: "W173L1";
208         }
209         description {
210                 state: "level5" 0.0;
211                 inherit: "default" 0.0;
212                 image.normal: "tw_number_controller_icon_brightness_5.png";
213                 color_class: "W173L1";
214         }
215     }
216     
217     part { name: "auto.check";
218         type: SWALLOW;
219         scale: 1;
220         description {
221                 min: 48 48;
222                 max: 48 48;
223                 fixed: 1 1;
224                 rel1 {
225                         relative: 1 1;
226                         to_x: "left_padding";
227                         to_y: "brightness.icon";
228                         offset: 0 30;
229                 }
230                 rel2 {
231                         relative: 1 1;
232                         to_x: "left_padding";
233                         to_y: "brightness.icon";
234                         offset: 56 78;
235                 }
236         }
237     }
238     part { name: "auto.text";
239       type: TEXT;
240       scale: 1;
241       mouse_events: 0;
242       description { state: "default" 0.0;
243          min: 0 56;
244          fixed: 1 1;
245          align: 0.0 0;
246          visible: 1;
247          rel1 {
248                 relative: 1 0;
249             to: "auto.check";
250             offset: 8 0;
251          }
252          rel2 {
253                 relative: 1 1;
254             to_x: "bg";
255             to_y: "auto.check";
256             offset: -16 0;
257          }
258          color_class: "T011";
259                  text {
260                         text_class:"T011";
261                         align: 0.0 0.5;
262                  }
263       }
264     }
265     part { name: "auto.text.rect";
266                 type: RECT;
267                 scale: 1;
268                 mouse_events: 1;
269                 description { state: "default" 0.0;
270                         min: 0 56;
271                         rel1 {
272                                 relative: 0.0 0.0;
273                                 to: "auto.text";
274                         }
275                         rel2 {
276                                 relative: 1.0 1.0;
277                                 to: "auto.text";
278                         }
279                         color: 0 0 0 0;
280                 }
281         }
282         FOCUS_OBJECT("auto.text.rect")
283     
284     part { name: "elm.text.2";
285       type: TEXTBLOCK;
286       scale: 1;
287       description { state: "default" 0.0;
288          min: 0 30;
289          fixed: 1 1;
290          align: 0.5 0;
291          visible: 0;
292          rel1 {
293            to_x: "left_padding";
294            to_y: "elm.icon.1";
295            relative: 1 1;
296            offset: 0 20;
297          }
298          rel2 {
299            to_x: "right_padding";
300            to_y: "elm.icon.1";
301            relative: 0 1;
302            offset: 0 50;
303          }
304          text {
305                 style: "outdoor_style";
306             align: 0.5 0.0;
307             min: 1 1;
308          }
309       }
310       description { state: "visible" 0.0;
311         inherit: "default" 0.0;
312         visible: 1;
313       }
314     }
315   
316        part { name: "btn1";
317          type: SWALLOW;
318          scale: 1;
319          description { state: "default" 0.0;
320             fixed: 1 1;
321             rel1 {
322                relative: 0.0 1.0;
323             }
324             rel2 {
325                to_x: "padding";
326                relative: 0.0 1.0;
327             }
328             min: 0 76;
329             align: 0.5 1;
330          }
331       }
332       part { name: "padding";
333          type: SPACER;
334          scale: 1;
335          mouse_events: 0;
336          description { state: "default" 0.0;
337             rel1 {
338                relative: 0.5 1.0;
339             }
340             rel2 {
341                relative: 0.5 1.0;
342             }
343             align: 0.5 1.0;
344             min: 1 0;
345             max: 1 0;
346             fixed: 1 0;
347          }
348       }
349       part { name: "btn2";
350          type: SWALLOW;
351          scale: 1;
352          description { state: "default" 0.0;
353             fixed: 1 1;
354             rel1 {
355                to_x: "padding";
356                relative: 1.0 1.0;
357             }
358             rel2 {
359                relative: 1.0 1.0;
360             }
361             min: 0 76;
362             align: 0.5 1;
363          }
364       }
365    
366     
367     programs {
368      program {
369         signal: "elm,state,outdoor.visible";
370         source: "*";
371         action: STATE_SET "visible" 0.0;
372         target: "elm.text.2";
373      }
374      
375      program {
376         signal: "elm,state,brightness,level,1";
377         source: "*";
378         action: STATE_SET "default" 0.0;
379         target: "brightness.icon";
380      }
381      program {
382         signal: "elm,state,brightness,level,2";
383         source: "*";
384         action: STATE_SET "level2" 0.0;
385         target: "brightness.icon";
386      }
387      program {
388         signal: "elm,state,brightness,level,3";
389         source: "*";
390         action: STATE_SET "level3" 0.0;
391         target: "brightness.icon";
392      }
393      program {
394         signal: "elm,state,brightness,level,4";
395         source: "*";
396         action: STATE_SET "level4" 0.0;
397         target: "brightness.icon";
398      }
399      program {
400         signal: "elm,state,brightness,level,5";
401         source: "*";
402         action: STATE_SET "level5" 0.0;
403         target: "brightness.icon";
404      }
405     }
406   }
407 }