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;
579 state: "default" 0.0;
581 rel1 {relative: 0.0 0.0; offset: 0 0;}
582 rel2 {relative: 1.0 1.0; offset: 0 0;}
587 name: "colorbar_0_image";
591 state: "default" 0.0;
593 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
594 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
595 image.normal: "00_color_picker_color.png";
602 name: "elm/colorselector/image/colorbar_1/default";
604 image: "00_color_picker_saturation.png" COMP;
613 state: "default" 0.0;
615 rel1 {relative: 0.0 0.0; offset: 0 0;}
616 rel2 {relative: 1.0 1.0; offset: 0 0;}
621 name: "colorbar_1_image";
625 state: "default" 0.0;
627 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
628 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
629 image.normal: "00_color_picker_saturation.png";
636 name: "elm/colorselector/image/colorbar_2/default";
638 image: "00_color_picker_brightness.png" COMP;
647 state: "default" 0.0;
649 rel1 {relative: 0.0 0.0; offset: 0 0;}
650 rel2 {relative: 1.0 1.0; offset: 0 0;}
655 name: "colorbar_2_image";
659 state: "default" 0.0;
661 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
662 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
663 image.normal: "00_color_picker_brightness.png";
670 name: "elm/colorselector/arrow/default";
672 image:"00_color_picker_handler.png" COMP;
681 state: "default" 0.0;
682 image.normal: "00_color_picker_handler.png";
689 name: "elm/colorselector/item/default";
691 image: "00_color_picker_palette_focus.png" COMP;
700 state: "default" 0.0;
701 min: COLORSELECTOR_PALETTE_COLORBG_MIN_WIDTH_INC COLORSELECTOR_PALETTE_COLORBG_MIN_HEIGHT_INC;
705 part { name: "color_obj";
709 description { state: "default" 0.0;
719 state: "default" 0.0;
721 min: COLORSELECTOR_PALETTE_COLORBG_FOCUS_MIN_WIDTH_INC COLORSELECTOR_PALETTE_COLORBG_FOCUS_MIN_HEIGHT_INC;
722 image.normal: "00_color_picker_palette_focus.png";
723 image.border: COLORSELECTOR_PALETTE_BORDER_INC;
724 image.border_scale: 1;
729 state: "focused" 0.0;
730 inherit: "default" 0.0;
734 part { name: "over1";
739 state: "default" 0.0;
747 program { name: "item_focus";
749 signal: "elm,state,selected";
750 action: STATE_SET "focused" 0.0;
751 target: "focus_image";
753 program { name: "item_unfocus";
755 signal: "elm,state,unselected";
756 action: STATE_SET "default" 0.0;
757 target: "focus_image";
759 program { name: "touch_snd";
760 signal: "mouse,clicked,1";
762 action: PLAY_SAMPLE "touch_sound" 1.0;
768 name: "elm/colorselector/item/color/default";
770 image: "00_color_picker_palette_bg.png" COMP;
779 state: "default" 0.0;
780 image.normal: "00_color_picker_palette_bg.png";
781 image.border: COLORSELECTOR_PALETTE_BORDER_INC;
782 image.border_scale: 1;