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.
21 name: "elm/colorselector/palette/default";
22 data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_INC;
23 data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_INC;
29 description { state: "default" 0.0;
34 part { name: "palette";
38 description { state: "default" 0.0;
51 part{ name: "bottom_padding";
54 description { state: "default" 0.0;
58 rel1.relative: 0.0 1.0;
64 part { name: "selector";
68 description { state: "default" 0.0;
84 name: "elm/colorselector/palette/landscape";
85 data.item: "horizontal_pad" COLORSELECTOR_LANDSCAPE_HOR_PAD_INC;
86 data.item: "vertical_pad" COLORSELECTOR_LANDSCAPE_VER_PAD_INC;
92 description { state: "default" 0.0;
97 part { name: "palette";
101 description { state: "default" 0.0;
114 part{ name: "bottom_padding";
117 description { state: "default" 0.0;
121 rel1.relative: 0.0 1.0;
127 part { name: "selector";
131 description { state: "default" 0.0;
135 to: "bottom_padding";
147 name: "elm/colorselector/bg/default";
155 state: "default" 0.0;
156 min: COLORSELECTOR_MIN_W_INC COLORSELECTOR_MIN_H_INC;
160 part{ name: "top_padding";
163 ignore_flags: ON_HOLD;
165 state: "default" 0.0;
168 color: COLORSELECTOR_PADDING_COLOR_INC;
169 rel2.relative: 1.0 0.0;
176 name: "elm.colorbar_0";
181 state: "default" 0.0;
182 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
183 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
185 rel1.relative: 0.0 1.0;
186 rel1.to_y: "top_padding";
187 rel2.to_y: "top_padding";
192 name: "bottom_padding";
195 ignore_flags: ON_HOLD;
197 state: "default" 0.0;
201 color: COLORSELECTOR_PADDING_COLOR_INC;
202 rel1.relative: 0.0 1.0;
203 rel1.to_y: "elm.colorbar_0";
204 rel2.to_y: "elm.colorbar_0";
209 name: "elm.colorbar_1";
214 state: "default" 0.0;
215 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
216 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
218 rel1.relative: 0.0 1.0;
219 rel1.to_y: "bottom_padding";
220 rel2.to_y: "bottom_padding";
225 name: "bottom_padding1";
228 ignore_flags: ON_HOLD;
230 state: "default" 0.0;
234 color: COLORSELECTOR_PADDING_COLOR_INC;
235 rel1.relative: 0.0 1.0;
236 rel1.to_y: "elm.colorbar_1";
237 rel2.to_y: "elm.colorbar_1";
242 name: "elm.colorbar_2";
247 state: "default" 0.0;
248 min: 1 COLORSELECTOR_COLORBAR_HEIGHT;
249 max: COLORSELECTOR_MAX_W_INC COLORSELECTOR_COLORBAR_HEIGHT;
251 rel1.relative: 0.0 1.0;
252 rel1.to_y: "bottom_padding1";
253 rel2.to_y: "bottom_padding1";
258 name: "bottom_padding2";
261 ignore_flags: ON_HOLD;
263 state: "default" 0.0;
267 color: COLORSELECTOR_PADDING_COLOR_INC;
268 rel1.relative: 0.0 1.0;
269 rel1.to_y: "elm.colorbar_2";
270 rel2.to_y: "bg_rect";
278 name: "elm/colorselector/base/default";
286 state: "default" 0.0;
291 name: "bar_bg_padding_rect_l";
295 state: "default" 0.0;
297 min: COLORSELECTOR_COLORBAR_LEFT_PADDING 0;
299 rel1.relative: 0.0 0.5;
300 rel2.relative: 0.0 0.5;
305 name: "bar_bg_padding_rect_r";
309 state: "default" 0.0;
311 min: COLORSELECTOR_COLORBAR_RIGHT_PADDING 0;
313 rel1.relative: 1.0 0.5;
314 rel2.relative: 1.0 0.5;
319 name: "button_top_padding";
322 ignore_flags: ON_HOLD;
324 state: "default" 0.0;
326 min: 0 COLORSELECTOR_BUTTON_TOP_PADDING;
328 rel1.relative: 0.0 0.0;
329 rel2.relative: 1.0 0.0;
338 state: "default" 0.0;
339 rel1 {relative: 1.0 (16/70); to_x: "bar_bg_padding_rect_l";}
340 rel2 {relative: 0.0 (54/70); to_x: "bar_bg_padding_rect_r";}
348 state: "default" 0.0;
349 rel1.to: "elm.bar_bg";
350 rel2.to: "elm.bar_bg";
354 name: "arrow_bg_padding_rect_l";
358 state: "default" 0.0;
360 min: COLORSELECTOR_ARROW_BG_LEFT_PADDING 0;
362 rel2.relative: 0.0 1.0;
367 name: "arrow_bg_padding_rect_r";
371 state: "default" 0.0;
373 min: COLORSELECTOR_ARROW_BG_RIGHT_PADDING 0;
375 rel1.relative: 1.0 0.0;
380 name: "elm.arrow_bg";
384 state: "default" 0.0;
385 rel1 {relative: 1.0 (10/70); to_x: "arrow_bg_padding_rect_l";}
386 rel2 {relative: 0.0 (60/70); to_x: "arrow_bg_padding_rect_r";}
395 state: "default" 0.0;
396 min: COLORSELECTOR_ARROW_MIN_WIDTH COLORSELECTOR_ARROW_MIN_HEIGHT;
400 rel1 {relative: 0.0 0.0; to_y: "elm.arrow_bg";}
401 rel2 {relative: 0.0 1.0; to_y: "elm.arrow_bg";}
404 confine: "elm.arrow_bg";
410 name: "elm.arrow_icon";
415 state: "default" 0.0;
420 offset: COLORSELECTOR_ARROW_REL1_OFFSET;
424 offset: COLORSELECTOR_ARROW_REL2_OFFSET;
433 state: "default" 0.0;
434 min: COLORSELECTOR_DRAGGABLE_EVENT_AREA;
436 rel1.to: "elm.arrow_icon";
437 rel2.to: "elm.arrow_icon";
445 name: "l_button_padding_rect";
450 state: "default" 0.0;
452 min: COLORSELECTOR_BUTTON_LEFT_PADDING 0;
454 rel2.relative: 0.0 1.0;
459 name: "r_button_padding_rect";
464 state: "default" 0.0;
466 min: COLORSELECTOR_BUTTON_RIGHT_PADDING 0;
468 rel1.relative: 1.0 0.0;
473 name: "elm.l_button";
478 state: "default" 0.0;
479 min: COLORSELECTOR_BUTTON_WIDTH COLORSELECTOR_BUTTON_HEIGHT;
481 rel1 {relative: 1.0 1.0; to_x: "l_button_padding_rect"; to_y: "button_top_padding";}
482 rel2 {relative: 1.0 1.0; to_x: "l_button_padding_rect"; to_y: "button_top_padding";}
487 name: "elm.r_button";
492 state: "default" 0.0;
493 min: COLORSELECTOR_BUTTON_WIDTH COLORSELECTOR_BUTTON_HEIGHT;
495 rel1 {relative: 0.0 1.0; to_x: "r_button_padding_rect"; to_y: "button_top_padding";}
496 rel2 {relative: 0.0 1.0; to_x: "r_button_padding_rect"; to_y: "button_top_padding";}
504 name: "elm/colorselector/image/colorbar_0/default";
506 image: "00_color_picker_color.png" COMP;
515 state: "default" 0.0;
517 rel1 {relative: 0.0 0.0; offset: 0 0;}
518 rel2 {relative: 1.0 1.0; offset: 0 0;}
523 name: "colorbar_0_image";
527 state: "default" 0.0;
529 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
530 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
531 image.normal: "00_color_picker_color.png";
538 name: "elm/colorselector/image/colorbar_1/default";
540 image: "00_color_picker_opacity.png" COMP;
549 state: "default" 0.0;
551 rel1 {relative: 0.0 0.0; offset: 0 0;}
552 rel2 {relative: 1.0 1.0; offset: 0 0;}
557 name: "colorbar_1_image";
561 state: "default" 0.0;
563 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
564 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
565 image.normal: "00_color_picker_opacity.png";
572 name: "elm/colorselector/image/colorbar_2/default";
574 image: "00_color_picker_brightness.png" COMP;
583 state: "default" 0.0;
585 rel1 {relative: 0.0 0.0; offset: 0 0;}
586 rel2 {relative: 1.0 1.0; offset: 0 0;}
591 name: "colorbar_2_image";
595 state: "default" 0.0;
597 rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; }
598 rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; }
599 image.normal: "00_color_picker_brightness.png";
606 name: "elm/colorselector/arrow/default";
608 image:"00_color_picker_focus.png" COMP;
617 state: "default" 0.0;
618 image.normal: "00_color_picker_focus.png";
625 name: "elm/colorselector/item/default";
627 image: "00_color_picker_palette_focus.png" COMP;
636 state: "default" 0.0;
637 min: COLORSELECTOR_PALETTE_COLORBG_MIN_WIDTH_INC COLORSELECTOR_PALETTE_COLORBG_MIN_HEIGHT_INC;
641 part { name: "color_obj";
645 description { state: "default" 0.0;
655 state: "default" 0.0;
657 min: COLORSELECTOR_PALETTE_COLORBG_FOCUS_MIN_WIDTH_INC COLORSELECTOR_PALETTE_COLORBG_FOCUS_MIN_HEIGHT_INC;
658 image.normal: "00_color_picker_palette_focus.png";
659 image.border: COLORSELECTOR_PALETTE_BORDER_INC;
660 image.border_scale: 1;
665 state: "focused" 0.0;
666 inherit: "default" 0.0;
672 program { name: "item_focus";
674 signal: "elm,state,selected";
675 action: STATE_SET "focused" 0.0;
676 target: "focus_image";
678 program { name: "item_unfocus";
680 signal: "elm,state,unselected";
681 action: STATE_SET "default" 0.0;
682 target: "focus_image";
688 name: "elm/colorselector/item/color/default";
690 image: "00_color_picker_palette_bg.png" COMP;
699 state: "default" 0.0;
700 image.normal: "00_color_picker_palette_bg.png";
701 image.border: COLORSELECTOR_PALETTE_BORDER_INC;
702 image.border_scale: 1;