2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
9 * 1. Redistributions of source code must retain the above copyright notice, this
10 * list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
19 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 group { name: "elm/slider/horizontal/indicator/default";
28 alias: "elm/slider/horizontal/indicator/disabled";
29 alias: "elm/slider/horizontal/indicator/tap_to_drag";
30 alias: "elm/slider/horizontal/indicator/textstyle";
31 alias: "elm/slider/horizontal/indicator/numberstyle";
33 image: "tw_scrubber_control_holo_dark_press.png" COMP;
34 image: "tw_scrubber_control_press_line.png" COMP;
37 part { name: "access";
39 description { state: "default" 0.0;
44 part { name: "button_events";
48 description { state: "default" 0.0;
50 min: 2.5*SLIDER_IND_WIDTH 2*SLIDER_IND_HEIGHT;
53 description { state: "disabled" 0.0;
54 inherit: "default" 0.0;
58 part { name: "button0";
61 description { state: "default" 0.0;
63 min: SLIDER_IND_WIDTH SLIDER_IND_HEIGHT;
64 max: SLIDER_IND_MAX_WIDTH SLIDER_IND_MAX_HEIGHT;
66 normal: "tw_scrubber_control_holo_dark_press.png";
68 color: 249 249 249 255; /*(Changeable UI) color_class: "B065L1";*/
70 description { state: "pressed" 0.0;
71 inherit: "default" 0.0;
72 color: 249 249 249 255; /*(Changeable UI) color_class: "B065L1P";*/
74 description { state: "disabled" 0.0;
75 inherit: "default" 0.0;
76 color: 147 147 147 255; /*(Changeable UI) color_class: "B065L1D";*/
79 part { name: "button_effect";
82 description { state: "default" 0.0;
84 min: SLIDER_IND_WIDTH SLIDER_IND_HEIGHT;
85 max: SLIDER_IND_MAX_WIDTH SLIDER_IND_MAX_HEIGHT;
86 image.normal: "tw_scrubber_control_press_line.png";
87 color: 249 249 249 0; /*(Changeable UI) color_class: "B141";*/
94 program { name: "slider_disable";
95 signal: "elm,state,disabled";
97 action: STATE_SET "disabled" 0.0;
99 target: "button_events";
101 program { name: "slider_enable";
102 signal: "elm,state,enabled";
104 action: STATE_SET "default" 0.0;
106 target: "button_events";
108 program { name: "mouse_down";
109 signal: "mouse,down,*";
110 source: "button_events";
111 action: STATE_SET "pressed" 0.0;
114 program { name: "mouse_up";
115 signal: "mouse,up,*";
116 source: "button_events";
117 action: STATE_SET "default" 0.0;
123 group { name: "elm/slider/horizontal/default";
124 alias: "elm/slider/horizontal/disabled";
126 item: "access_highlight" on;
129 image: "tw_timepicker_num_bg_new.#.png" COMP;
130 image: "tw_focused_effect.#.png" COMP;
133 public icon_show = 0;
134 public invert_on = 0;
135 public set_invert_on() {
136 set_state(PART:"level", "inverted", 0.0);
137 set_int(invert_on, 1);
139 public set_invert_off() {
140 set_state(PART:"level", "default", 0.0);
141 set_int(invert_on, 0);
143 public thumb_down() {
144 if(get_int(invert_on) == 0)
145 set_state(PART:"level", "pressed", 0.0);
148 if(get_int(invert_on) == 0)
149 set_state(PART:"level", "default", 0.0);
153 part { name: "access";
155 description { state: "default" 0.0;
165 state: "default" 0.0;
166 min: 0 SLIDER_BG_HEIGHT_INC;
167 max: -1 SLIDER_BG_HEIGHT_INC;
175 state: "default" 0.0;
186 description { state: "visible";
187 inherit: "default" 0.0;
188 min: 0 SLIDER_POPUP_BOTTOM_PADDING_HEIGHT_INC;
189 max: -1 SLIDER_POPUP_BOTTOM_PADDING_HEIGHT_INC;
192 part { name: "popup_bg";
195 description { state: "default" 0.0;
196 rel1.to: "top_padding";
201 min: SLIDER_POPUP_SIZE_INC;
202 max: SLIDER_POPUP_SIZE_INC;
207 part { name: "popup.image";
209 description { state: "default" 0.0;
214 image.normal: "tw_timepicker_num_bg_new.#.png";
215 color: 9 37 63 255; /*(Changeable UI) color_class: "W0811";*/
217 description { state: "visible" 0.0;
218 inherit: "default" 0.0;
221 description { state: "pressed" 0.0;
222 inherit: "default" 0.0;
224 color: 0 110 255 255; /*(Changeable UI) color_class: "W0812";*/
227 part { name: "elm.indicator";
230 description { state: "default" 0.0;
233 color: 249 249 249 255; /*(Changeable UI) color_class: "T051";*/
234 rel1.to: "popup.image";
235 rel2.to: "popup.image";
239 font: "Tizen:style=Bold"; size: "50"; /*(Changeable UI) text_class: "T051";*/
243 description { state: "visible" 0.0;
244 inherit: "default" 0.0;
247 description { state: "pressed" 0.0;
248 inherit: "default" 0.0;
249 color: 7 7 7 255; /*(Changeable UI) color_class: "T051P";*/
252 description { state: "disabled" 0.0;
253 inherit: "default" 0.0;
254 color: 96 96 96 255; /*(Changeable UI) color_class: "T051D";*/
258 part { name: "elm.swallow.icon";
260 clip_to: "icon_clipper";
262 description { state: "default" 0.0;
274 description { state: "visible" 0.0;
275 inherit: "default" 0.0;
280 name: "icon_padding";
284 state: "default" 0.0;
289 to: "elm.swallow.icon";
293 to: "elm.swallow.icon";
298 description { state: "visible";
299 inherit: "default" 0.0;
300 min: SLIDER_ICON_PADDING_SIZE_INC;
301 max: SLIDER_ICON_PADDING_SIZE_INC;
309 state: "default" 0.0;
312 to_x: "icon_padding";
316 min: 0 PROGRESSBAR_HEIGHT_INC;
317 max: -1 PROGRESSBAR_HEIGHT_INC;
319 color: 71 71 71 255; /*(Changeable UI) color_class: "B065L3";*/
322 part { name: "level";
327 description { state: "default" 0.0;
334 to_x: "elm.dragable.slider";
337 min: 0 PROGRESSBAR_HEIGHT_INC;
338 max: -1 PROGRESSBAR_HEIGHT_INC;
341 description { state: "inverted" 0.0;
342 inherit: "default" 0.0;
345 description { state: "pressed" 0.0;
346 inherit: "default" 0.0;
349 part { name: "rect_swallow";
352 description { state: "default" 0.0;
366 part { name: "drag_base";
370 description { state: "default" 0.0;
372 rel1.to: "rect_swallow";
373 rel1.relative: 1.0 0.0;
374 rel1.offset: -18 0; // FIXME: slider image has transparent area
375 rel2.to: "elm.swallow.bar";
376 rel2.offset: -6 0; // FIXME: slider image has transparent area
378 description { state: "pressed" 0.0;
379 inherit: "default" 0.0;
384 part { name: "elm.swallow.bar";
387 description { state: "default" 0.0;
388 min: 0 SLIDER_IND_MAX_HEIGHT;
389 max: -1 SLIDER_IND_MAX_HEIGHT;
404 part { name: "elm.dragable.slider";
406 source: "elm/slider/horizontal/indicator/default";
412 confine: "drag_base";
414 description { state: "default" 0.0;
415 min: SLIDER_IND_WIDTH SLIDER_IND_HEIGHT;
416 max: SLIDER_IND_WIDTH SLIDER_IND_HEIGHT;
419 rel1.to: "elm.swallow.bar";
420 rel2.to: "elm.swallow.bar";
422 description { state: "pressed" 0.0;
423 inherit: "default" 0.0;
424 min: SLIDER_IND_MAX_WIDTH SLIDER_IND_MAX_HEIGHT;
425 max: SLIDER_IND_MAX_WIDTH SLIDER_IND_MAX_HEIGHT;
428 part { name: "disabler";
433 description { state: "default" 0.0;
436 rel1.to_x: "elm.swallow.bar";
437 rel2.to_x: "elm.swallow.bar";
439 description { state: "disabled" 0.0;
440 inherit: "default" 0.0;
444 part { name: "clipper";
446 description { state: "default" 0.0;
447 color: 0 110 255 255; /*(Changeable UI) color_class: "B065L2";*/
449 description { state: "disabled" 0.0;
450 color: 0 110 255 38; /*(Changeable UI) color_class: "B0651L2";*/
453 part { name: "icon_clipper";
456 description { state: "default" 0.0;
457 color: 249 249 249 255; /*(Changeable UI) color_class: "W173L1";*/
460 part { name: "access_image";
463 description { state: "default" 0.0;
470 image.normal: "tw_focused_effect.#.png";
471 color: 0 110 255 255; //(Changeable UI) color_class: "W201";
473 description { state: "highlighted" 0.0;
474 inherit: "default" 0.0;
477 description { state: "highlighted_icon_show" 0.0;
478 inherit: "highlighted" 0.0;
484 program { name: "invert_on";
485 signal: "elm,state,inverted,on";
491 program { name: "invert_off";
492 signal: "elm,state,inverted,off";
498 program { name: "val_show";
499 signal: "mouse,down,*";
500 source: "elm.dragable.slider";
504 action: STATE_SET "pressed" 0.0;
505 transition: LINEAR 0.1;
507 target: "elm.dragable.slider";
509 program { name: "val_hide";
510 signal: "mouse,up,*";
511 source: "elm.dragable.slider";
515 action: STATE_SET "default" 0.0;
516 transition: LINEAR 0.1;
518 target: "elm.dragable.slider";
520 program { name: "button_expand";
521 signal: "mouse,down,*";
522 source: "elm.swallow.bar";
523 action: STATE_SET "pressed" 0.0;
524 transition: LINEAR 0.1;
526 target: "elm.dragable.slider";
528 program { name: "button_reduce";
529 signal: "mouse,up,*";
530 source: "elm.swallow.bar";
531 action: STATE_SET "default" 0.0;
532 transition: LINEAR 0.1;
534 target: "elm.dragable.slider";
536 program { name: "popup_val_show";
537 signal: "elm,state,val,show";
539 action: STATE_SET "visible" 0.0;
540 target: "top_padding";
541 target: "popup.image";
542 target: "elm.indicator";
544 program { name: "popup,show";
545 signal: "popup,show";
547 action: STATE_SET "visible" 0.0;
548 target: "top_padding";
549 target: "popup.image";
550 target: "elm.indicator";
552 program { name: "popup_hide";
553 signal: "popup,hide";
555 action: STATE_SET "default" 0.0;
556 target: "top_padding";
557 target: "popup.image";
558 target: "elm.indicator";
560 program { name: "icon_show";
561 signal: "elm,state,icon,visible";
564 set_int(icon_show, 1);
565 set_state(PART:"elm.swallow.icon", "visible", 0.0);
566 set_state(PART:"icon_padding", "visible", 0.0);
569 program { name: "slider_disable";
570 signal: "elm,state,disabled";
572 action: STATE_SET "disabled" 0.0;
576 program { name: "slider_enable";
577 signal: "elm,state,enabled";
579 action: STATE_SET "default" 0.0;
583 program { name: "action_highlight";
584 signal: "elm,action,access_highlight,show";
587 if (get_int(icon_show))
588 set_state(PART:"access_image", "highlighted_icon_show", 0.0);
590 set_state(PART:"access_image", "highlighted", 0.0);
593 program { name: "action_no_highlight";
594 signal: "elm,action,access_highlight,hide";
596 action: STATE_SET "default" 0.0;
597 target: "access_image";