[misc] Sycn with master branch.
[apps/core/preloaded/calendar.git] / data / edc / layout / inc.main.title.edc
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.1 (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 #define WIDTH_OF_TITLE (1280)
19 #define HEIGHT_OF_TITLE (108)
20 #define WIDTH_OF_TITLE_INC (90)
21 #define WIDTH_OF_TITLE_INC_RECT (100)
22 #define HEIGHT_OF_TITLE_INC_RECT (50)
23 #define OFFSET_WIDTH_OF_TITLE_INC (20)
24 #define OFFSET_HEIGHT_OF_TITLE_INC (10)
25 #define OFFSET_OF_TITLE_INC (71)
26 #define HEIGHT_OF_TITLE_CALENDAR (48)
27 #define HEIGHT_OF_TITLE_ACCOUNT (40)
28 #define OFFSET_OF_ICON_RIGHT (5)
29 #define HEIGHT_OF_ICON (48)
30 // 462 x 632
31 group { name, "main/title";
32
33         images {
34                 image, "P01_spin_left_press.png" COMP;
35                 image, "P01_spin_right_press.png" COMP;
36                 image, "P01_spin_right.png" COMP;
37                 image, "P01_spin_left.png" COMP;
38         }
39
40         styles {
41                 style { name, "main/title";
42                         base, "font=SLP:style=Medium font_size=40 align=center color=#000000ff wrap=none";
43                         tag, "br" "\n";
44                         tag, "hilight" "+ color=#ffff";
45                         tag, "b" "+ color=#ffff";
46                         tag, "g38" "+ color=#879E19 font="FONT_LIG" font_size=38";
47                         tag, "tab" "\t";
48                 }
49                 style { name, "main/title/selected";
50                         base, "font=SLP:style=Medium font_size=40 align=center color=#ffffffff wrap=none";
51                         tag, "br" "\n";
52                         tag, "hilight" "+ color=#ffff";
53                         tag, "b" "+ color=#ffff";
54                         tag, "g38" "+ color=#879E19 font="FONT_LIG" font_size=38";
55                         tag, "tab" "\t";
56                 }
57         }
58
59         parts {
60                 part { name, "base";
61                         type, RECT;
62                         description {
63                                 state, "default" 0.0;
64                                 color, 248 246 239 255;;
65                         }
66                 }
67
68                 part { name, "title/text/bg";
69                         mouse_events, 0;
70                         scale, 1;
71                         description {
72                                 state, "default" 0.0;
73                                 rel1.to, "title/text";
74                                 rel2.to, "title/text";
75                                 image {
76                                         normal, CALENDAR_SELSECTED;
77                                         border, 3 3 3 3;
78                                         border_scale,1 ;
79                                 }
80                                 visible, 0;
81                         }
82                         description {
83                                 state, "default" 0.1;
84                                 inherit, "default" 0.0;
85                                 visible, 1;
86                         }
87                 }
88
89                 part { name, "title/text";
90                         type, TEXTBLOCK;
91                         scale, 1;
92                         mouse_events, 1;
93                         description {
94                                 state, "default" 0.0;
95                                 fixed, 0 1;
96                                 rel1 { relative, 1.0 0.5; to_x, "title/left"; to_y, "base"; }
97                                 rel2 { relative, 0.0 0.5; to_x, "title/right"; to_y, "base"; }
98                                 text {
99                                         style, "main/title";
100                                         min, 0 1;
101                                 }
102                         }
103                         description {
104                                 state, "default" 0.1;
105                                 fixed, 0 1;
106                                 rel1 { relative, 1.0 0.5; to_x, "title/left"; to_y, "base"; }
107                                 rel2 { relative, 0.0 0.5; to_x, "title/right"; to_y, "base"; }
108                                 text {
109                                         style, "main/title/selected";
110                                         min, 0 1;
111                                 }
112                         }
113                 }
114
115                 part { name, "title/left";
116                         type, RECT;
117                         scale, 1;
118                         description {
119                                 state, "default" 0.0;
120                                 min, 58 0;
121                                 fixed, 1 0;
122                                 rel1.to, "base";
123                                 rel2 {
124                                         relative, 0.0 1.0;
125                                         to, "base";
126                                 }
127                                 align, 0.0 0.5;
128                                 color, 0 0 0 0;
129                         }
130                 }
131
132                 part { name, "title/left/img";
133                         scale, 1;
134                         mouse_events, 0;
135                         description {
136                                 state, "default" 0.0;
137                                 min, 12 24;
138                                 fixed, 1 1;
139                                 rel1 { relative, 0.5 0.5; to, "title/left"; }
140                                 rel2 { relative, 0.5 0.5; to, "title/left"; }
141                                 align, 0.5 0.5;
142                                 image.normal, "P01_spin_left.png";
143                         }
144                         description {
145                                 state, "default" 0.1;
146                                 inherit, "default" 0.0;
147                                 image.normal, "P01_spin_left_press.png";
148                         }
149                 }
150
151                 part { name, "title/right";
152                         type, RECT;
153                         scale, 1;
154                         description {
155                                 state, "default" 0.0;
156                                 min, 58 0;
157                                 fixed, 1 0;
158                                 rel1 {
159                                         relative, 1.0 0.0;
160                                         to, "base";
161                                 }
162                                 rel2.to, "base";
163                                 align, 1.0 0.5;
164                                 color, 0 0 0 0;
165                         }
166                 }
167
168                 part { name, "title/right/img";
169                         scale, 1;
170                         mouse_events, 0;
171                         description {
172                                 state, "default" 0.0;
173                                 min, 12 24;
174                                 fixed, 1 1;
175                                 rel1 { relative, 0.5 0.5; to, "title/right"; }
176                                 rel2 { relative, 0.5 0.5; to, "title/right"; }
177                                 align, 0.5 0.5;
178                                 image.normal, "P01_spin_right.png";
179                         }
180                         description {
181                                 state, "default" 0.1;
182                                 inherit, "default" 0.0;
183                                 image.normal, "P01_spin_right_press.png";
184                         }
185                 }
186         }
187
188         programs {
189                 program { name, "title/left/down";
190                         signal, "mouse,down,1";
191                         source, "title/left";
192                         action, SIGNAL_EMIT "start,dec" "title";
193                 }
194
195                 program { name, "title/left/mouse_down";
196                         signal, "mouse,down,1";
197                         source, "title/left";
198                         action, STATE_SET "default" 0.1;
199                         target, "title/left/img";
200                 }
201
202                 program { name, "title/left/up";
203                         signal, "mouse,up,1";
204                         source, "title/left";
205                         action, SIGNAL_EMIT "stop,dec" "title";
206                 }
207
208                 program { name, "title/left/mouse_up";
209                         signal, "mouse,up,1";
210                         source, "title/left";
211                         action, STATE_SET "default" 0.0;
212                         target, "title/left/img";
213                 }
214
215                 program { name, "title/right/down";
216                         signal, "mouse,down,1";
217                         source, "title/right";
218                         action, SIGNAL_EMIT "start,inc" "title";
219                 }
220
221                 program { name, "title/right/mouse_down";
222                         signal, "mouse,down,1";
223                         source, "title/right";
224                         action, STATE_SET "default" 0.1;
225                         target, "title/right/img";
226                 }
227
228                 program { name, "title/right/up";
229                         signal, "mouse,up,1";
230                         source, "title/right";
231                         action, SIGNAL_EMIT "stop,inc" "title";
232                 }
233
234                 program { name, "title/right/mouse_up";
235                         signal, "mouse,up,1";
236                         source, "title/right";
237                         action, STATE_SET "default" 0.0;
238                         target, "title/right/img";
239                 }
240         }
241 }
242