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.
20 name: "touch_sound" AS_IS;
21 source: "S_Touch_30ms.wav";
26 name: "elm/colorselector/palette/default";
27 data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_INC;
28 data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_INC;
34 description { state: "default" 0.0;
39 part { name: "palette";
43 description { state: "default" 0.0;
56 part{ name: "bottom_padding";
59 description { state: "default" 0.0;
63 rel1.relative: 0.0 1.0;
69 part { name: "selector";
73 description { state: "default" 0.0;
89 name: "elm/colorselector/palette/landscape";
90 data.item: "horizontal_pad" COLORSELECTOR_LANDSCAPE_HOR_PAD_INC;
91 data.item: "vertical_pad" COLORSELECTOR_LANDSCAPE_VER_PAD_INC;
97 description { state: "default" 0.0;
102 part { name: "palette";
106 description { state: "default" 0.0;
119 part{ name: "bottom_padding";
122 description { state: "default" 0.0;
126 rel1.relative: 0.0 1.0;
132 part { name: "selector";
136 description { state: "default" 0.0;
140 to: "bottom_padding";
152 name: "elm/colorselector/bg/default";
160 state: "default" 0.0;
161 min: COLORSELECTOR_MIN_W_INC COLORSELECTOR_MIN_H_INC;
165 part{ name: "top_padding1";
168 ignore_flags: ON_HOLD;
170 state: "default" 0.0;
173 color: COLORSELECTOR_PADDING_COLOR_TOP_INC;
174 rel2.relative: 1.0 0.0;
180 part{ name: "top_padding2";
183 ignore_flags: ON_HOLD;
185 state: "default" 0.0;
188 color: COLORSELECTOR_PADDING_COLOR_BOTTOM_INC;
189 rel1.relative: 0.0 1.0;
190 rel1.to_y: "top_padding1";
191 rel2.to_y: "top_padding1";
196 name: "elm.colorbar_0";
201 state: "default" 0.0;
202 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
203 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
205 rel1.relative: 0.0 1.0;
206 rel1.to_y: "top_padding2";
207 rel2.to_y: "top_padding2";
212 name: "bottom_padding1";
215 ignore_flags: ON_HOLD;
217 state: "default" 0.0;
221 color: COLORSELECTOR_PADDING_COLOR_TOP_INC;
222 rel1.relative: 0.0 1.0;
223 rel1.to_y: "elm.colorbar_0";
224 rel2.to_y: "elm.colorbar_0";
229 name: "bottom_padding2";
232 ignore_flags: ON_HOLD;
234 state: "default" 0.0;
238 color: COLORSELECTOR_PADDING_COLOR_BOTTOM_INC;
239 rel1.relative: 0.0 1.0;
240 rel1.to_y: "bottom_padding1";
241 rel2.to_y: "bottom_padding1";
246 name: "elm.colorbar_1";
251 state: "default" 0.0;
252 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
253 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
255 rel1.relative: 0.0 1.0;
256 rel1.to_y: "bottom_padding2";
257 rel2.to_y: "bottom_padding2";
262 name: "bottom_padding3";
265 ignore_flags: ON_HOLD;
267 state: "default" 0.0;
271 color: COLORSELECTOR_PADDING_COLOR_TOP_INC;
272 rel1.relative: 0.0 1.0;
273 rel1.to_y: "elm.colorbar_1";
274 rel2.to_y: "elm.colorbar_1";
279 name: "bottom_padding4";
282 ignore_flags: ON_HOLD;
284 state: "default" 0.0;
288 color: COLORSELECTOR_PADDING_COLOR_BOTTOM_INC;
289 rel1.relative: 0.0 1.0;
290 rel1.to_y: "bottom_padding3";
291 rel2.to_y: "bottom_padding3";
296 name: "elm.colorbar_2";
301 state: "default" 0.0;
302 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
303 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
305 rel1.relative: 0.0 1.0;
306 rel1.to_y: "bottom_padding4";
307 rel2.to_y: "bottom_padding4";
312 name: "bottom_padding5";
315 ignore_flags: ON_HOLD;
317 state: "default" 0.0;
321 color: COLORSELECTOR_PADDING_COLOR_TOP_INC;
322 rel1.relative: 0.0 1.0;
323 rel1.to_y: "elm.colorbar_2";
324 rel2.to_y: "elm.colorbar_2";
329 name: "bottom_padding6";
332 ignore_flags: ON_HOLD;
334 state: "default" 0.0;
338 color: COLORSELECTOR_PADDING_COLOR_BOTTOM_INC;
339 rel1.relative: 0.0 1.0;
340 rel1.to_y: "bottom_padding5";
341 rel2.to_y: "bg_rect";
349 name: "elm/colorselector/base/default";
357 state: "default" 0.0;
362 name: "bar_bg_padding_rect_l";
366 state: "default" 0.0;
368 min: COLORSELECTOR_COLORBAR_LEFT_PADDING 0;
370 rel1.relative: 0.0 0.5;
371 rel2.relative: 0.0 0.5;
376 name: "bar_bg_padding_rect_r";
380 state: "default" 0.0;
382 min: COLORSELECTOR_COLORBAR_RIGHT_PADDING 0;
384 rel1.relative: 1.0 0.5;
385 rel2.relative: 1.0 0.5;
390 name: "button_top_padding";
393 ignore_flags: ON_HOLD;
395 state: "default" 0.0;
397 min: 0 COLORSELECTOR_BUTTON_TOP_PADDING;
399 rel1.relative: 0.0 0.0;
400 rel2.relative: 1.0 0.0;
409 state: "default" 0.0;
410 rel1 {relative: 1.0 (16/70); to_x: "bar_bg_padding_rect_l";}
411 rel2 {relative: 0.0 (54/70); to_x: "bar_bg_padding_rect_r";}
419 state: "default" 0.0;
420 rel1.to: "elm.bar_bg";
421 rel2.to: "elm.bar_bg";
425 name: "arrow_bg_padding_rect_l";
429 state: "default" 0.0;
431 min: COLORSELECTOR_ARROW_BG_LEFT_PADDING 0;
433 rel2.relative: 0.0 1.0;
438 name: "arrow_bg_padding_rect_r";
442 state: "default" 0.0;
444 min: COLORSELECTOR_ARROW_BG_RIGHT_PADDING 0;
446 rel1.relative: 1.0 0.0;
451 name: "elm.arrow_bg";
455 state: "default" 0.0;
456 rel1 {relative: 1.0 (10/70); to_x: "arrow_bg_padding_rect_l";}
457 rel2 {relative: 0.0 (60/70); to_x: "arrow_bg_padding_rect_r";}
466 state: "default" 0.0;
467 min: COLORSELECTOR_ARROW_MIN_WIDTH COLORSELECTOR_ARROW_MIN_HEIGHT;
471 rel1 {relative: 0.0 0.0; to_y: "elm.arrow_bg";}
472 rel2 {relative: 0.0 1.0; to_y: "elm.arrow_bg";}
475 confine: "elm.arrow_bg";
481 name: "elm.arrow_icon";
486 state: "default" 0.0;
491 offset: COLORSELECTOR_ARROW_REL1_OFFSET;
495 offset: COLORSELECTOR_ARROW_REL2_OFFSET;
504 state: "default" 0.0;
505 min: COLORSELECTOR_DRAGGABLE_EVENT_AREA;
507 rel1.to: "elm.arrow_icon";
508 rel2.to: "elm.arrow_icon";
516 name: "l_button_padding_rect";
521 state: "default" 0.0;
523 min: COLORSELECTOR_BUTTON_LEFT_PADDING 0;
525 rel2.relative: 0.0 1.0;
530 name: "r_button_padding_rect";
535 state: "default" 0.0;
537 min: COLORSELECTOR_BUTTON_RIGHT_PADDING 0;
539 rel1.relative: 1.0 0.0;
544 name: "elm.l_button";
549 state: "default" 0.0;
550 min: COLORSELECTOR_BUTTON_WIDTH COLORSELECTOR_BUTTON_HEIGHT;
552 rel1 {relative: 1.0 1.0; to_x: "l_button_padding_rect"; to_y: "button_top_padding";}
553 rel2 {relative: 1.0 1.0; to_x: "l_button_padding_rect"; to_y: "button_top_padding";}
558 name: "elm.r_button";
563 state: "default" 0.0;
564 min: COLORSELECTOR_BUTTON_WIDTH COLORSELECTOR_BUTTON_HEIGHT;
566 rel1 {relative: 0.0 1.0; to_x: "r_button_padding_rect"; to_y: "button_top_padding";}
567 rel2 {relative: 0.0 1.0; to_x: "r_button_padding_rect"; to_y: "button_top_padding";}
575 name: "elm/colorselector/image/colorbar_0/default";
577 image: "00_color_picker_color.png" COMP;
586 state: "default" 0.0;
588 rel1 {relative: 0.0 0.0; offset: 0 0;}
589 rel2 {relative: 1.0 1.0; offset: 0 0;}
594 name: "colorbar_0_image";
598 state: "default" 0.0;
600 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
601 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
602 image.normal: "00_color_picker_color.png";
609 name: "elm/colorselector/image/colorbar_1/default";
611 image: "00_color_picker_saturation.png" COMP;
620 state: "default" 0.0;
622 rel1 {relative: 0.0 0.0; offset: 0 0;}
623 rel2 {relative: 1.0 1.0; offset: 0 0;}
628 name: "colorbar_1_image";
632 state: "default" 0.0;
634 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
635 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
636 image.normal: "00_color_picker_saturation.png";
643 name: "elm/colorselector/image/colorbar_2/default";
645 image: "00_color_picker_brightness.png" COMP;
654 state: "default" 0.0;
656 rel1 {relative: 0.0 0.0; offset: 0 0;}
657 rel2 {relative: 1.0 1.0; offset: 0 0;}
662 name: "colorbar_2_image";
666 state: "default" 0.0;
668 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
669 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
670 image.normal: "00_color_picker_brightness.png";
677 name: "elm/colorselector/arrow/default";
679 image:"00_color_picker_handler.png" COMP;
688 state: "default" 0.0;
689 image.normal: "00_color_picker_handler.png";
696 name: "elm/colorselector/item/default";
698 image: "00_color_picker_palette_focus.png" COMP;
707 state: "default" 0.0;
708 min: COLORSELECTOR_PALETTE_COLORBG_MIN_WIDTH_INC COLORSELECTOR_PALETTE_COLORBG_MIN_HEIGHT_INC;
712 part { name: "color_obj";
716 description { state: "default" 0.0;
726 state: "default" 0.0;
728 min: COLORSELECTOR_PALETTE_COLORBG_FOCUS_MIN_WIDTH_INC COLORSELECTOR_PALETTE_COLORBG_FOCUS_MIN_HEIGHT_INC;
729 image.normal: "00_color_picker_palette_focus.png";
730 image.border: COLORSELECTOR_PALETTE_BORDER_INC;
731 image.border_scale: 1;
736 state: "focused" 0.0;
737 inherit: "default" 0.0;
741 part { name: "over1";
746 state: "default" 0.0;
754 program { name: "item_focus";
756 signal: "elm,state,selected";
757 action: STATE_SET "focused" 0.0;
758 target: "focus_image";
760 program { name: "item_unfocus";
762 signal: "elm,state,unselected";
763 action: STATE_SET "default" 0.0;
764 target: "focus_image";
766 program { name: "touch_snd";
767 signal: "mouse,clicked,1";
769 action: PLAY_SAMPLE "touch_sound" 1.0;
775 name: "elm/colorselector/item/color/default";
777 image: "00_color_picker_palette_bg.png" COMP;
786 state: "default" 0.0;
787 image.normal: "00_color_picker_palette_bg.png";
788 image.border: COLORSELECTOR_PALETTE_BORDER_INC;
789 image.border_scale: 1;