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_padding";
168 ignore_flags: ON_HOLD;
170 state: "default" 0.0;
173 color: COLORSELECTOR_PADDING_COLOR_INC;
174 rel2.relative: 1.0 0.0;
181 name: "elm.colorbar_0";
186 state: "default" 0.0;
187 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
188 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
190 rel1.relative: 0.0 1.0;
191 rel1.to_y: "top_padding";
192 rel2.to_y: "top_padding";
197 name: "bottom_padding";
200 ignore_flags: ON_HOLD;
202 state: "default" 0.0;
206 color: COLORSELECTOR_PADDING_COLOR_INC;
207 rel1.relative: 0.0 1.0;
208 rel1.to_y: "elm.colorbar_0";
209 rel2.to_y: "elm.colorbar_0";
214 name: "elm.colorbar_1";
219 state: "default" 0.0;
220 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
221 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
223 rel1.relative: 0.0 1.0;
224 rel1.to_y: "bottom_padding";
225 rel2.to_y: "bottom_padding";
230 name: "bottom_padding1";
233 ignore_flags: ON_HOLD;
235 state: "default" 0.0;
239 color: COLORSELECTOR_PADDING_COLOR_INC;
240 rel1.relative: 0.0 1.0;
241 rel1.to_y: "elm.colorbar_1";
242 rel2.to_y: "elm.colorbar_1";
247 name: "elm.colorbar_2";
252 state: "default" 0.0;
253 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
254 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
256 rel1.relative: 0.0 1.0;
257 rel1.to_y: "bottom_padding1";
258 rel2.to_y: "bottom_padding1";
263 name: "bottom_padding2";
266 ignore_flags: ON_HOLD;
268 state: "default" 0.0;
272 color: COLORSELECTOR_PADDING_COLOR_INC;
273 rel1.relative: 0.0 1.0;
274 rel1.to_y: "elm.colorbar_2";
275 rel2.to_y: "bg_rect";
283 name: "elm/colorselector/base/default";
291 state: "default" 0.0;
296 name: "bar_bg_padding_rect_l";
300 state: "default" 0.0;
302 min: COLORSELECTOR_COLORBAR_LEFT_PADDING 0;
304 rel1.relative: 0.0 0.5;
305 rel2.relative: 0.0 0.5;
310 name: "bar_bg_padding_rect_r";
314 state: "default" 0.0;
316 min: COLORSELECTOR_COLORBAR_RIGHT_PADDING 0;
318 rel1.relative: 1.0 0.5;
319 rel2.relative: 1.0 0.5;
324 name: "button_top_padding";
327 ignore_flags: ON_HOLD;
329 state: "default" 0.0;
331 min: 0 COLORSELECTOR_BUTTON_TOP_PADDING;
333 rel1.relative: 0.0 0.0;
334 rel2.relative: 1.0 0.0;
343 state: "default" 0.0;
344 rel1 {relative: 1.0 (16/70); to_x: "bar_bg_padding_rect_l";}
345 rel2 {relative: 0.0 (54/70); to_x: "bar_bg_padding_rect_r";}
353 state: "default" 0.0;
354 rel1.to: "elm.bar_bg";
355 rel2.to: "elm.bar_bg";
359 name: "arrow_bg_padding_rect_l";
363 state: "default" 0.0;
365 min: COLORSELECTOR_ARROW_BG_LEFT_PADDING 0;
367 rel2.relative: 0.0 1.0;
372 name: "arrow_bg_padding_rect_r";
376 state: "default" 0.0;
378 min: COLORSELECTOR_ARROW_BG_RIGHT_PADDING 0;
380 rel1.relative: 1.0 0.0;
385 name: "elm.arrow_bg";
389 state: "default" 0.0;
390 rel1 {relative: 1.0 (10/70); to_x: "arrow_bg_padding_rect_l";}
391 rel2 {relative: 0.0 (60/70); to_x: "arrow_bg_padding_rect_r";}
400 state: "default" 0.0;
401 min: COLORSELECTOR_ARROW_MIN_WIDTH COLORSELECTOR_ARROW_MIN_HEIGHT;
405 rel1 {relative: 0.0 0.0; to_y: "elm.arrow_bg";}
406 rel2 {relative: 0.0 1.0; to_y: "elm.arrow_bg";}
409 confine: "elm.arrow_bg";
415 name: "elm.arrow_icon";
420 state: "default" 0.0;
425 offset: COLORSELECTOR_ARROW_REL1_OFFSET;
429 offset: COLORSELECTOR_ARROW_REL2_OFFSET;
438 state: "default" 0.0;
439 min: COLORSELECTOR_DRAGGABLE_EVENT_AREA;
441 rel1.to: "elm.arrow_icon";
442 rel2.to: "elm.arrow_icon";
450 name: "l_button_padding_rect";
455 state: "default" 0.0;
457 min: COLORSELECTOR_BUTTON_LEFT_PADDING 0;
459 rel2.relative: 0.0 1.0;
464 name: "r_button_padding_rect";
469 state: "default" 0.0;
471 min: COLORSELECTOR_BUTTON_RIGHT_PADDING 0;
473 rel1.relative: 1.0 0.0;
478 name: "elm.l_button";
483 state: "default" 0.0;
484 min: COLORSELECTOR_BUTTON_WIDTH COLORSELECTOR_BUTTON_HEIGHT;
486 rel1 {relative: 1.0 1.0; to_x: "l_button_padding_rect"; to_y: "button_top_padding";}
487 rel2 {relative: 1.0 1.0; to_x: "l_button_padding_rect"; to_y: "button_top_padding";}
492 name: "elm.r_button";
497 state: "default" 0.0;
498 min: COLORSELECTOR_BUTTON_WIDTH COLORSELECTOR_BUTTON_HEIGHT;
500 rel1 {relative: 0.0 1.0; to_x: "r_button_padding_rect"; to_y: "button_top_padding";}
501 rel2 {relative: 0.0 1.0; to_x: "r_button_padding_rect"; to_y: "button_top_padding";}
509 name: "elm/colorselector/image/colorbar_0/default";
511 image: "00_color_picker_color.png" COMP;
520 state: "default" 0.0;
522 rel1 {relative: 0.0 0.0; offset: 0 0;}
523 rel2 {relative: 1.0 1.0; offset: 0 0;}
528 name: "colorbar_0_image";
532 state: "default" 0.0;
534 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
535 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
536 image.normal: "00_color_picker_color.png";
543 name: "elm/colorselector/image/colorbar_1/default";
545 image: "00_color_picker_saturation.png" COMP;
554 state: "default" 0.0;
556 rel1 {relative: 0.0 0.0; offset: 0 0;}
557 rel2 {relative: 1.0 1.0; offset: 0 0;}
562 name: "colorbar_1_image";
566 state: "default" 0.0;
568 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
569 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
570 image.normal: "00_color_picker_saturation.png";
577 name: "elm/colorselector/image/colorbar_2/default";
579 image: "00_color_picker_brightness.png" COMP;
588 state: "default" 0.0;
590 rel1 {relative: 0.0 0.0; offset: 0 0;}
591 rel2 {relative: 1.0 1.0; offset: 0 0;}
596 name: "colorbar_2_image";
600 state: "default" 0.0;
602 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
603 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
604 image.normal: "00_color_picker_brightness.png";
611 name: "elm/colorselector/arrow/default";
613 image:"00_color_picker_handler.png" COMP;
622 state: "default" 0.0;
623 image.normal: "00_color_picker_handler.png";
630 name: "elm/colorselector/item/default";
632 image: "00_color_picker_palette_focus.png" COMP;
641 state: "default" 0.0;
642 min: COLORSELECTOR_PALETTE_COLORBG_MIN_WIDTH_INC COLORSELECTOR_PALETTE_COLORBG_MIN_HEIGHT_INC;
646 part { name: "color_obj";
650 description { state: "default" 0.0;
660 state: "default" 0.0;
662 min: COLORSELECTOR_PALETTE_COLORBG_FOCUS_MIN_WIDTH_INC COLORSELECTOR_PALETTE_COLORBG_FOCUS_MIN_HEIGHT_INC;
663 image.normal: "00_color_picker_palette_focus.png";
664 image.border: COLORSELECTOR_PALETTE_BORDER_INC;
665 image.border_scale: 1;
670 state: "focused" 0.0;
671 inherit: "default" 0.0;
675 part { name: "over1";
680 state: "default" 0.0;
688 program { name: "item_focus";
690 signal: "elm,state,selected";
691 action: STATE_SET "focused" 0.0;
692 target: "focus_image";
694 program { name: "item_unfocus";
696 signal: "elm,state,unselected";
697 action: STATE_SET "default" 0.0;
698 target: "focus_image";
700 program { name: "touch_snd";
701 signal: "mouse,clicked,1";
703 action: PLAY_SAMPLE "touch_sound" 1.0;
709 name: "elm/colorselector/item/color/default";
711 image: "00_color_picker_palette_bg.png" COMP;
720 state: "default" 0.0;
721 image.normal: "00_color_picker_palette_bg.png";
722 image.border: COLORSELECTOR_PALETTE_BORDER_INC;
723 image.border_scale: 1;