2 * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 #define BRIGHTNESS_ICON_COLOR "AO004"
24 #define BRIGHTNESS_TEXT_COLOR "AO014"
28 name: "checkbox_text";
29 base: "font=Tizen:style=Regular text_class=tizen font_size=24 color=#FFFFFF color_class="BRIGHTNESS_TEXT_COLOR" ellipsis=0.0 wrap=mixed";
34 name: "quickpanel/brightness_controller/wrapper";
42 min: 0 QP_THEME_LIST_ITEM_BRIGHTNESS_HEIGHT;
43 max: 9999 QP_THEME_LIST_ITEM_BRIGHTNESS_HEIGHT;
54 part { name: "elm.swallow.controller";
73 name: "quickpanel/brightness_controller/default";
76 image: "quick_icon_brightness.png" COMP;
77 image: "quick_icon_brightness_00.png" COMP;
78 image: "quick_icon_brightness_01.png" COMP;
79 image: "quick_icon_brightness_02.png" COMP;
80 image: "quick_icon_brightness_03.png" COMP;
81 image: "quick_icon_brightness_04.png" COMP;
82 image: "quick_icon_brightness_05.png" COMP;
83 image: "quick_icon_brightness_06.png" COMP;
84 image: "quick_icon_brightness_07.png" COMP;
85 image: "quick_icon_brightness_08.png" COMP;
86 image: "quick_icon_brightness_09.png" COMP;
87 image: "quick_icon_brightness_10.png" COMP;
88 image: "quick_icon_brightness_11.png" COMP;
89 image: "core_theme_bg_01.png" COMP;
103 state: "default" 0.0;
104 min: 0 QP_THEME_LIST_ITEM_BRIGHTNESS_HEIGHT;
105 max: 9999 QP_THEME_LIST_ITEM_BRIGHTNESS_HEIGHT;
114 color_class: QP_BACKGROUND_COLOR;
115 visible: QP_THEME_BG_VISIBILITY;
124 state: "default" 0.0;
134 normal: "core_theme_bg_01.png";
139 state: "show.bg" 0.0;
140 inherit: "default" 0.0;
144 state: "hide.bg" 0.0;
145 inherit: "default" 0.0;
150 part { name: "disabler";
154 state: "default" 0.0;
164 state: "disabled" 0.0;
165 inherit: "default" 0.0;
169 part { name: "bg_image";
173 state: "default" 0.0;
176 color_class: QP_THEME_BRIGHTNESS_BG_COLOR;
177 visible: QP_THEME_BG_VISIBILITY;
180 state: "selected" 0.0;
181 inherit: "default" 0.0;
182 color_class: QP_THEME_BRIGHTNESS_BG_COLOR;
185 part { name: "elm.content.bg";
189 state: "default" 0.0;
204 //color_class: QP_BACKGROUND_COLOR;
207 QUICKPANEL_FOCUS_OBJECT("focus", "elm.content.bg", "elm.content.bg")
208 part { name: "elm.padding.left";
212 state: "default" 0.0;
218 rel2.relative: 0.0 0.0;
219 rel2.relative: 0.0 1.0;
224 part { name: "elm.rect.thumbnail";
229 state: "default" 0.0;
234 to_x:"elm.padding.left";
239 to_x:"elm.padding.left";
247 part { name: "elm.image.thumbnail";
252 state: "default" 0.0;
255 to: "elm.rect.thumbnail";
258 to: "elm.rect.thumbnail";
261 normal:"quick_icon_brightness_00.png";
265 state: "state.0" 0.0;
266 inherit: "default" 0.0;
268 normal:"quick_icon_brightness_00.png";
272 state: "state.1" 0.0;
273 inherit: "default" 0.0;
275 normal:"quick_icon_brightness_01.png";
279 state: "state.2" 0.0;
280 inherit: "default" 0.0;
282 normal:"quick_icon_brightness_02.png";
286 state: "state.3" 0.0;
287 inherit: "default" 0.0;
289 normal:"quick_icon_brightness_03.png";
293 state: "state.4" 0.0;
294 inherit: "default" 0.0;
296 normal:"quick_icon_brightness_04.png";
300 state: "state.5" 0.0;
301 inherit: "default" 0.0;
303 normal:"quick_icon_brightness_05.png";
307 state: "state.6" 0.0;
308 inherit: "default" 0.0;
310 normal:"quick_icon_brightness_06.png";
314 state: "state.7" 0.0;
315 inherit: "default" 0.0;
317 normal:"quick_icon_brightness_07.png";
321 state: "state.8" 0.0;
322 inherit: "default" 0.0;
324 normal:"quick_icon_brightness_08.png";
328 state: "state.9" 0.0;
329 inherit: "default" 0.0;
331 normal:"quick_icon_brightness_09.png";
335 state: "state.10" 0.0;
336 inherit: "default" 0.0;
338 normal:"quick_icon_brightness_10.png";
342 state: "state.11" 0.0;
343 inherit: "default" 0.0;
345 normal:"quick_icon_brightness_11.png";
349 state: "state.auto" 0.0;
350 inherit: "default" 0.0;
352 normal:"quick_icon_brightness.png";
356 part { name: "elm.padding.thumbnail.x";
361 state: "default" 0.0;
365 to:"elm.rect.thumbnail";
369 to:"elm.rect.thumbnail";
376 part { name: "elm.swallow.slider";
378 //clip_to: "disabler";
382 state: "default" 0.0;
386 to: "elm.padding.thumbnail.x";
390 to: "elm.padding.bf.check";
394 part { name: "elm.rect.slider";
399 state: "default" 0.0;
404 to_x: "elm.padding.thumbnail.x";
409 to_x: "elm.padding.bf.check";
417 state: "disabled" 0.0;
418 inherit: "default" 0.0;
422 part { name: "elm.padding.bf.check";
426 state: "default" 0.0;
429 to: "elm.check.swallow";
433 to: "elm.check.swallow";
439 part { name: "elm.check.swallow";
443 state: "default" 0.0;
446 to: "elm.padding.bf.auto";
450 to: "elm.padding.bf.auto";
458 part { name: "elm.padding.bf.auto";
462 state: "default" 0.0;
476 part { name: "elm.rect.auto";
480 state: "default" 0.0;
483 to : "elm.check.text";
487 to : "elm.check.text";
491 part { name: "elm.check.text";
495 state: "default" 0.0;
500 to : "elm.padding.right";
504 to : "elm.padding.right";
507 font : "Tizen:style=Regular";
509 text_class : "Tizen";
517 part { name: "elm.padding.right";
521 state: "default" 0.0;
538 program { name: "show_content";
539 signal: "elm,state,elm.swallow.slider,active";
542 set_state(PART:"elm.swallow.slider", "show", 0.0);
543 set_int(ctnt_shown, 1);
546 program { name: "go_active";
547 signal: "elm,state,selected";
550 set_state(PART:"bg_image", "selected", 0.0);
551 if (get_int(ctnt_shown) == 1)
552 set_state(PART:"elm.swallow.slider", "selected", 0.0);
555 program { name: "go_passive";
556 signal: "elm,state,unselected";
559 set_state(PART:"bg_image", "default", 0.0);
560 if (get_int(ctnt_shown) == 1)
561 set_state(PART:"elm.swallow.slider", "show", 0.0);
568 action: STATE_SET "show.bg" 0.0;
569 target: "background";
575 action: STATE_SET "hide.bg" 0.0;
576 target: "background";
579 name: "icon.state.0";
580 signal: "icon.state.0";
582 action: STATE_SET "state.0" 0.0;
583 target: "elm.image.thumbnail";
586 name: "icon.state.1";
587 signal: "icon.state.1";
589 action: STATE_SET "state.1" 0.0;
590 target: "elm.image.thumbnail";
593 name: "icon.state.2";
594 signal: "icon.state.2";
596 action: STATE_SET "state.2" 0.0;
597 target: "elm.image.thumbnail";
600 name: "icon.state.3";
601 signal: "icon.state.3";
603 action: STATE_SET "state.3" 0.0;
604 target: "elm.image.thumbnail";
607 name: "icon.state.4";
608 signal: "icon.state.4";
610 action: STATE_SET "state.4" 0.0;
611 target: "elm.image.thumbnail";
614 name: "icon.state.5";
615 signal: "icon.state.5";
617 action: STATE_SET "state.5" 0.0;
618 target: "elm.image.thumbnail";
621 name: "icon.state.6";
622 signal: "icon.state.6";
624 action: STATE_SET "state.6" 0.0;
625 target: "elm.image.thumbnail";
628 name: "icon.state.7";
629 signal: "icon.state.7";
631 action: STATE_SET "state.7" 0.0;
632 target: "elm.image.thumbnail";
635 name: "icon.state.8";
636 signal: "icon.state.8";
638 action: STATE_SET "state.8" 0.0;
639 target: "elm.image.thumbnail";
642 name: "icon.state.9";
643 signal: "icon.state.9";
645 action: STATE_SET "state.9" 0.0;
646 target: "elm.image.thumbnail";
649 name: "icon.state.10";
650 signal: "icon.state.10";
652 action: STATE_SET "state.10" 0.0;
653 target: "elm.image.thumbnail";
656 name: "icon.state.11";
657 signal: "icon.state.11";
659 action: STATE_SET "state.11" 0.0;
660 target: "elm.image.thumbnail";
663 name: "icon.state.auto";
664 signal: "icon.state.auto";
666 action: STATE_SET "state.auto" 0.0;
667 target: "elm.image.thumbnail";
672 action: STATE_SET "default" 0.0;
674 target: "elm.rect.slider";
679 action: STATE_SET "disabled" 0.0;
681 target: "elm.rect.slider";