1abad91d1a34ef69051475dfc83424220f65364f
[apps/core/preloaded/calendar.git] / data / edc / layout / inc.acct.colorselector.edc
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.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
8   *
9   *       http://floralicense.org/license/
10   *
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.
16   */
17
18 group{
19     name: "color_selector";
20     parts{
21                 part {
22                         name: "bg";
23                         type: RECT;
24                         mouse_events: 0;
25                         scale: 1;
26                         description {
27                                 state: "default" 0.0;
28                                 color: 0 0 0 0;
29                         }
30                 }
31
32                 part {
33                         name: "rect.up";
34                         type: RECT;
35                         mouse_events: 0;
36                         scale: 1;
37                         description {
38                                 state: "default" 0.0;
39                                 rel1 { relative: 0.0 0.0; to: "bg"; }
40                                 rel2 { relative: 1.0 0.36; to: "bg"; }
41                                 color: 0 0 0 0;
42                         }
43                 }
44
45                 part {
46                         name: "border.bg";
47                         type: RECT;
48                         mouse_events: 0;
49                         scale: 1;
50                         description {
51                                 state: "default" 0.0;
52                                 min: 300 90;
53                                 align: 0.5 0.5;
54                                 fixed: 1 1;
55                                 rel1 { relative: 0.5 0.5; to: "rect.up"; }
56                                 rel2 { relative: 0.5 0.5; to: "rect.up"; }
57                                 color: 0 0 0 0;
58                         }
59                 }
60
61                 part {
62                         name: "border";
63                         type: RECT;
64                         mouse_events: 0;
65                         scale: 1;
66                         description {
67                                 state: "default" 0.0;
68                                 rel1 { relative: 0.0 0.0; to: "border.bg"; }
69                                 rel2 { relative: 1.0 1.0; to: "border.bg"; }
70                                 color: 0 0 0 255;
71                         }
72                 }
73
74                 part {
75                         name: "color.bg";
76                         type: RECT;
77                         mouse_events: 0;
78                         scale: 1;
79                         description {
80                                 state: "default" 0.0;
81                                 min: (300-4) (90-4);
82                                 align: 0.5 0.5;
83                                 fixed: 1 1;
84                                 rel1 { relative: 0.5 0.5; to: "rect.up"; }
85                                 rel2 { relative: 0.5 0.5; to: "rect.up"; }
86                                 color: 0 0 0 0;
87                         }
88                 }
89
90                 part {
91                         name: "elm.swallow.color";
92                         type: SWALLOW;
93                         mouse_events: 1;
94                         scale: 1;
95                         description {
96                                 state: "default" 0.0;
97                                 rel1 { relative: 0.0 0.0; to: "color.bg"; }
98                                 rel2 { relative: 1.0 1.0; to: "color.bg"; }
99                         }
100                 }
101
102                 part {
103                         name: "event";
104                         type: RECT;
105                         mouse_events: 1;
106                         scale: 1;
107                         description {
108                                 state: "default" 0.0;
109                                 rel1 { relative: 0.0 0.0; to: "rect.up"; }
110                                 rel2 { relative: 1.0 1.0; to: "rect.up"; }
111                                 color: 0 0 0 0;
112                         }
113                 }
114
115                 part {
116                         name: "elm.swallow.selector";
117                         type: SWALLOW;
118                         mouse_events: 1;
119                         scale: 1;
120                         description {
121                                 state: "default" 0.0;
122                                 align: 0.5 0.5;
123                                 rel1 { relative: 4/480 0.36; to: "bg"; }
124                                 rel2 { relative: (480-4)/480 1.0; to: "bg"; }
125                                 //rel2 { relative: (480-4)/480 0.7; to: "bg"; }
126                         }
127                 }
128     }
129 }