3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 name: "elm/colorselector/palette/default";
20 data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_INC;
21 data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_INC;
27 description { state: "default" 0.0;
32 part { name: "palette";
36 description { state: "default" 0.0;
49 part{ name: "bottom_padding";
52 description { state: "default" 0.0;
56 rel1.relative: 0.0 1.0;
62 part { name: "selector";
66 description { state: "default" 0.0;
82 name: "elm/colorselector/palette/landscape";
83 data.item: "horizontal_pad" COLORSELECTOR_LANDSCAPE_HOR_PAD_INC;
84 data.item: "vertical_pad" COLORSELECTOR_LANDSCAPE_VER_PAD_INC;
90 description { state: "default" 0.0;
95 part { name: "palette";
99 description { state: "default" 0.0;
112 part{ name: "bottom_padding";
115 description { state: "default" 0.0;
119 rel1.relative: 0.0 1.0;
125 part { name: "selector";
129 description { state: "default" 0.0;
133 to: "bottom_padding";
145 name: "elm/colorselector/bg/default";
153 state: "default" 0.0;
154 min: COLORSELECTOR_MIN_W_INC COLORSELECTOR_MIN_H_INC;
158 part{ name: "top_padding1";
161 ignore_flags: ON_HOLD;
163 state: "default" 0.0;
166 color: COLORSELECTOR_PADDING_COLOR_TOP_INC;
167 rel2.relative: 1.0 0.0;
173 part{ name: "top_padding2";
176 ignore_flags: ON_HOLD;
178 state: "default" 0.0;
181 color: COLORSELECTOR_PADDING_COLOR_BOTTOM_INC;
182 rel1.relative: 0.0 1.0;
183 rel1.to_y: "top_padding1";
184 rel2.to_y: "top_padding1";
189 name: "elm.colorbar_0";
194 state: "default" 0.0;
195 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
196 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
198 rel1.relative: 0.0 1.0;
199 rel1.to_y: "top_padding2";
200 rel2.to_y: "top_padding2";
205 name: "bottom_padding1";
208 ignore_flags: ON_HOLD;
210 state: "default" 0.0;
214 color: COLORSELECTOR_PADDING_COLOR_TOP_INC;
215 rel1.relative: 0.0 1.0;
216 rel1.to_y: "elm.colorbar_0";
217 rel2.to_y: "elm.colorbar_0";
222 name: "bottom_padding2";
225 ignore_flags: ON_HOLD;
227 state: "default" 0.0;
231 color: COLORSELECTOR_PADDING_COLOR_BOTTOM_INC;
232 rel1.relative: 0.0 1.0;
233 rel1.to_y: "bottom_padding1";
234 rel2.to_y: "bottom_padding1";
239 name: "elm.colorbar_1";
244 state: "default" 0.0;
245 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
246 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
248 rel1.relative: 0.0 1.0;
249 rel1.to_y: "bottom_padding2";
250 rel2.to_y: "bottom_padding2";
255 name: "bottom_padding3";
258 ignore_flags: ON_HOLD;
260 state: "default" 0.0;
264 color: COLORSELECTOR_PADDING_COLOR_TOP_INC;
265 rel1.relative: 0.0 1.0;
266 rel1.to_y: "elm.colorbar_1";
267 rel2.to_y: "elm.colorbar_1";
272 name: "bottom_padding4";
275 ignore_flags: ON_HOLD;
277 state: "default" 0.0;
281 color: COLORSELECTOR_PADDING_COLOR_BOTTOM_INC;
282 rel1.relative: 0.0 1.0;
283 rel1.to_y: "bottom_padding3";
284 rel2.to_y: "bottom_padding3";
289 name: "elm.colorbar_2";
294 state: "default" 0.0;
295 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
296 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
298 rel1.relative: 0.0 1.0;
299 rel1.to_y: "bottom_padding4";
300 rel2.to_y: "bottom_padding4";
305 name: "bottom_padding5";
308 ignore_flags: ON_HOLD;
310 state: "default" 0.0;
314 color: COLORSELECTOR_PADDING_COLOR_TOP_INC;
315 rel1.relative: 0.0 1.0;
316 rel1.to_y: "elm.colorbar_2";
317 rel2.to_y: "elm.colorbar_2";
322 name: "bottom_padding6";
325 ignore_flags: ON_HOLD;
327 state: "default" 0.0;
331 color: COLORSELECTOR_PADDING_COLOR_BOTTOM_INC;
332 rel1.relative: 0.0 1.0;
333 rel1.to_y: "bottom_padding5";
334 rel2.to_y: "bg_rect";
342 name: "elm/colorselector/base/default";
350 state: "default" 0.0;
355 name: "bar_bg_padding_rect_l";
359 state: "default" 0.0;
361 min: COLORSELECTOR_COLORBAR_LEFT_PADDING 0;
363 rel1.relative: 0.0 0.5;
364 rel2.relative: 0.0 0.5;
369 name: "bar_bg_padding_rect_r";
373 state: "default" 0.0;
375 min: COLORSELECTOR_COLORBAR_RIGHT_PADDING 0;
377 rel1.relative: 1.0 0.5;
378 rel2.relative: 1.0 0.5;
383 name: "button_top_padding";
386 ignore_flags: ON_HOLD;
388 state: "default" 0.0;
390 min: 0 COLORSELECTOR_BUTTON_TOP_PADDING;
392 rel1.relative: 0.0 0.0;
393 rel2.relative: 1.0 0.0;
402 state: "default" 0.0;
403 rel1 {relative: 1.0 (16/70); to_x: "bar_bg_padding_rect_l";}
404 rel2 {relative: 0.0 (54/70); to_x: "bar_bg_padding_rect_r";}
412 state: "default" 0.0;
413 rel1.to: "elm.bar_bg";
414 rel2.to: "elm.bar_bg";
418 name: "arrow_bg_padding_rect_l";
422 state: "default" 0.0;
424 min: COLORSELECTOR_ARROW_BG_LEFT_PADDING 0;
426 rel2.relative: 0.0 1.0;
431 name: "arrow_bg_padding_rect_r";
435 state: "default" 0.0;
437 min: COLORSELECTOR_ARROW_BG_RIGHT_PADDING 0;
439 rel1.relative: 1.0 0.0;
444 name: "elm.arrow_bg";
448 state: "default" 0.0;
449 rel1 {relative: 1.0 (10/70); to_x: "arrow_bg_padding_rect_l";}
450 rel2 {relative: 0.0 (60/70); to_x: "arrow_bg_padding_rect_r";}
459 state: "default" 0.0;
460 min: COLORSELECTOR_ARROW_MIN_WIDTH COLORSELECTOR_ARROW_MIN_HEIGHT;
464 rel1 {relative: 0.0 0.0; to_y: "elm.arrow_bg";}
465 rel2 {relative: 0.0 1.0; to_y: "elm.arrow_bg";}
468 confine: "elm.arrow_bg";
474 name: "elm.arrow_icon";
479 state: "default" 0.0;
484 offset: COLORSELECTOR_ARROW_REL1_OFFSET;
488 offset: COLORSELECTOR_ARROW_REL2_OFFSET;
497 state: "default" 0.0;
498 min: COLORSELECTOR_DRAGGABLE_EVENT_AREA;
500 rel1.to: "elm.arrow_icon";
501 rel2.to: "elm.arrow_icon";
509 name: "l_button_padding_rect";
514 state: "default" 0.0;
516 min: COLORSELECTOR_BUTTON_LEFT_PADDING 0;
518 rel2.relative: 0.0 1.0;
523 name: "r_button_padding_rect";
528 state: "default" 0.0;
530 min: COLORSELECTOR_BUTTON_RIGHT_PADDING 0;
532 rel1.relative: 1.0 0.0;
537 name: "elm.l_button";
542 state: "default" 0.0;
543 min: COLORSELECTOR_BUTTON_WIDTH COLORSELECTOR_BUTTON_HEIGHT;
545 rel1 {relative: 1.0 1.0; to_x: "l_button_padding_rect"; to_y: "button_top_padding";}
546 rel2 {relative: 1.0 1.0; to_x: "l_button_padding_rect"; to_y: "button_top_padding";}
551 name: "elm.r_button";
556 state: "default" 0.0;
557 min: COLORSELECTOR_BUTTON_WIDTH COLORSELECTOR_BUTTON_HEIGHT;
559 rel1 {relative: 0.0 1.0; to_x: "r_button_padding_rect"; to_y: "button_top_padding";}
560 rel2 {relative: 0.0 1.0; to_x: "r_button_padding_rect"; to_y: "button_top_padding";}
568 name: "elm/colorselector/image/colorbar_0/default";
570 image: "00_color_picker_color.png" COMP;
571 image: "00_color_picker_color_h.png" COMP;
580 state: "default" 0.0;
586 name: "colorbar_0_image";
590 state: "default" 0.0;
594 image.normal: "00_color_picker_color.png";
597 state: "landscape" 0.0;
598 inherit: "default" 0.0;
599 image.normal: "00_color_picker_color_h.png";
604 program { name: "landscape_mode";
606 signal: "elm,state,orient,90";
607 action: STATE_SET "landscape" 0.0;
608 target: "colorbar_0_image";
610 program { name: "landscape_mode2";
612 signal: "elm,state,orient,270";
613 action: STATE_SET "landscape" 0.0;
614 target: "colorbar_0_image";
616 program { name: "portrait_mode";
618 signal: "elm,state,orient,0";
619 action: STATE_SET "default" 0.0;
620 target: "colorbar_0_image";
622 program { name: "portrait_mode2";
624 signal: "elm,state,orient,180";
625 action: STATE_SET "default" 0.0;
626 target: "colorbar_0_image";
632 name: "elm/colorselector/image/colorbar_1/default";
634 image: "00_color_picker_saturation.png" COMP;
635 image: "00_color_picker_saturation_h.png" COMP;
644 state: "default" 0.0;
650 name: "colorbar_1_image";
654 state: "default" 0.0;
658 image.normal: "00_color_picker_saturation.png";
661 state: "landscape" 0.0;
662 inherit: "default" 0.0;
663 image.normal: "00_color_picker_saturation_h.png";
668 program { name: "landscape_mode";
670 signal: "elm,state,orient,90";
671 action: STATE_SET "landscape" 0.0;
672 target: "colorbar_1_image";
674 program { name: "landscape_mode2";
676 signal: "elm,state,orient,270";
677 action: STATE_SET "landscape" 0.0;
678 target: "colorbar_1_image";
680 program { name: "portrait_mode";
682 signal: "elm,state,orient,0";
683 action: STATE_SET "default" 0.0;
684 target: "colorbar_1_image";
686 program { name: "portrait_mode2";
688 signal: "elm,state,orient,180";
689 action: STATE_SET "default" 0.0;
690 target: "colorbar_1_image";
696 name: "elm/colorselector/image/colorbar_2/default";
698 image: "00_color_picker_brightness.png" COMP;
699 image: "00_color_picker_brightness_h.png" COMP;
708 state: "default" 0.0;
714 name: "colorbar_2_image";
718 state: "default" 0.0;
722 image.normal: "00_color_picker_brightness.png";
725 state: "landscape" 0.0;
726 inherit: "default" 0.0;
727 image.normal: "00_color_picker_brightness_h.png";
732 program { name: "landscape_mode";
734 signal: "elm,state,orient,90";
735 action: STATE_SET "landscape" 0.0;
736 target: "colorbar_2_image";
738 program { name: "landscape_mode2";
740 signal: "elm,state,orient,270";
741 action: STATE_SET "landscape" 0.0;
742 target: "colorbar_2_image";
744 program { name: "portrait_mode";
746 signal: "elm,state,orient,0";
747 action: STATE_SET "default" 0.0;
748 target: "colorbar_2_image";
750 program { name: "portrait_mode2";
752 signal: "elm,state,orient,180";
753 action: STATE_SET "default" 0.0;
754 target: "colorbar_2_image";
760 name: "elm/colorselector/arrow/default";
762 image:"00_color_picker_handler.png" COMP;
771 state: "default" 0.0;
772 image.normal: "00_color_picker_handler.png";
779 name: "elm/colorselector/item/default";
781 image: "00_color_picker_palette_focus.png" COMP;
790 state: "default" 0.0;
791 min: COLORSELECTOR_PALETTE_COLORBG_MIN_WIDTH_INC COLORSELECTOR_PALETTE_COLORBG_MIN_HEIGHT_INC;
795 part { name: "color_obj";
799 description { state: "default" 0.0;
809 state: "default" 0.0;
811 min: COLORSELECTOR_PALETTE_COLORBG_FOCUS_MIN_WIDTH_INC COLORSELECTOR_PALETTE_COLORBG_FOCUS_MIN_HEIGHT_INC;
812 image.normal: "00_color_picker_palette_focus.png";
813 image.border: COLORSELECTOR_PALETTE_BORDER_INC;
814 image.border_scale: 1;
819 state: "focused" 0.0;
820 inherit: "default" 0.0;
824 part { name: "over1";
829 state: "default" 0.0;
837 program { name: "item_focus";
839 signal: "elm,state,selected";
840 action: STATE_SET "focused" 0.0;
841 target: "focus_image";
843 program { name: "item_unfocus";
845 signal: "elm,state,unselected";
846 action: STATE_SET "default" 0.0;
847 target: "focus_image";
849 program { name: "touch_snd";
850 signal: "mouse,clicked,1";
852 action: PLAY_SAMPLE "touch_sound" 1.0;
858 name: "elm/colorselector/item/color/default";
860 image: "00_color_picker_palette_bg.png" COMP;
869 state: "default" 0.0;
870 image.normal: "00_color_picker_palette_bg.png";
871 image.border: COLORSELECTOR_PALETTE_BORDER_INC;
872 image.border_scale: 1;