2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include "worldclock_macro.edc"
19 //#define NAVI_BAR_H 55
24 #define HD_HEIGHT 1280
27 #define COLOR_GENLIST_ITEM_BG 48 48 48 255
28 #define COLOR_GENLIST_ITEM_PRESSED_BG 107 100 88 255
29 #define COLOR_GENLIST_ITEM_BOTTOM_LINE_BG 82 82 82 255
31 #define COLOR_ADDVIEW_GENLIST_ITEM_BG 249 249 249 255
32 #define COLOR_ADDVIEW_GENLIST_ITEM_BG_BLACK 0 0 0 255
34 #define COLOR_BOTTOM_LINE 199 199 199 255
35 #define COLOR_BOTTOM_LINE_BLACK 68 68 68 255
37 #define COLOR_DISCLIP_DISABLE_COLOR 255 255 255 64
40 #define ADD_LIST_HEIGHT 129
41 #define ADD_LIST_FONT "SLP:style=Roman"
42 #define ADD_LIST_FONT_SIZE 44
43 #define ADD_LIST_SUB_FONT "SLP:style=Medium"
44 #define ADD_LIST_SUB_FONT_SIZE 32
45 #define ADD_LIST_GMT_FONT "SLP:style=Medium"
46 #define ADD_LIST_GMT_FONT_SIZE 32
47 #define ADD_LIST_COLOR 0 0 0 255
48 #define ADD_LIST_SUB_COLOR 108 108 108 255
49 #define ADD_LIST_GMT_COLOR 108 108 108 255
50 #define ADD_LIST_SELECTED_COLOR 255 255 255 255
51 #define ADD_LIST_COLOR_BLACK 249 249 249 255
52 #define ADD_LIST_SUB_COLOR_BLACK 100 100 100 255
53 #define ADD_LIST_GMT_COLOR_BLACK 100 100 100 255
54 #define ADD_LIST_SELECTED_COLOR_BLACK 249 249 249 255
55 #define ADD_LIST_TEXTBLOCK_COLOR "#4E4E4EFF"
56 #define ADD_LIST_SELECTED_TEXTBLOCK_COLOR "#4E4E4EFF"
57 #define ADD_LIST_TEXTBLOCK_COLOR_BLACK "#F9F9F9FF"
58 #define ADD_LIST_SELECTED_TEXTBLOCK_COLOR_BLACK "#F9F9F9FF"
60 #define ADD_LIST_PADDING_TOP 10
61 #define ADD_LIST_PADDING_BOTTOM 10
62 #define ADD_LIST_PADDING_LEFT 16
63 #define ADD_LIST_PADDING_RIGHT 16
64 #define ADD_LIST_MIN_X 153
65 #define ADD_LIST_MIN_Y 61
69 //worldclock_addview_list
72 name: "elm/genlist/item/worldclock_addview_list/default";
73 alias: "elm/genlist/item_odd/worldclock_addview_list/default";
74 alias: "elm/genlist/item_compress/worldclock_addview_list/default";
75 alias: "elm/genlist/item_compress_odd/worldclock_addview_list/default";
76 data.item: "stacking" "above";
77 data.item: "selectraise" "on";
78 data.item: "texts" "elm.text.city elm.text.country elm.text.gmt";
79 //data.item: "contents" "elm.swallow.city elm.swallow.country elm.swallow.gmt";
80 data.item: "treesize" "20";
84 name: "city_textblock_style";
85 base: "font="ADD_LIST_FONT" font_size="ADD_LIST_FONT_SIZE" color="ADD_LIST_TEXTBLOCK_COLOR" wrap=char text_class=list_item";
91 name: "city_textblock_selected_style";
92 base: "font="ADD_LIST_FONT" font_size="ADD_LIST_FONT_SIZE" color="ADD_LIST_SELECTED_TEXTBLOCK_COLOR" wrap=char text_class=list_item";
107 min: 0 ADD_LIST_HEIGHT;
108 state: "default" 0.0;
109 color: COLOR_ADDVIEW_GENLIST_ITEM_BG;
119 state: "default" 0.0;
120 color: 249 249 249 255;
123 state: "selected" 0.0;
124 inherit: "default" 0.0;
125 color: 199 185 164 255;
129 WCL_GENLIST_PART_BOTTOM_LINE( COLOR_BOTTOM_LINE )
130 WCL_GENLIST_PART_PADDING_TOP( ADD_LIST_PADDING_TOP )
131 WCL_GENLIST_PART_PADDING_BOTTOM( ADD_LIST_PADDING_BOTTOM )
132 WCL_GENLIST_PART_PADDING_LEFT( ADD_LIST_PADDING_LEFT )
133 WCL_GENLIST_PART_PADDING_RIGHT( ADD_LIST_PADDING_RIGHT )
136 name: "elm.text.gmt";
142 state: "default" 0.0;
143 min: ADD_LIST_MIN_X ADD_LIST_MIN_Y;
145 rel1 { relative: 0.0 1.0; to_x: "elm.padding.right"; to_y: "elm.padding.top"; }
146 rel2 { relative: 0.0 1.0; to_x: "elm.padding.right"; to_y: "elm.padding.top"; }
148 //rel1{relative: 0.7 0.0; }
149 //rel2{relative: (465.0/WIDTH) 0.6; }
150 color: ADD_LIST_GMT_COLOR;
152 font: ADD_LIST_GMT_FONT;
153 size: ADD_LIST_GMT_FONT_SIZE;
159 state: "selected" 0.0;
160 inherit: "default" 0.0;
161 color: ADD_LIST_SELECTED_COLOR;
165 name: "elm.padding.gmt.left";
171 state: "default" 0.0;
174 rel1.to_x: "elm.text.gmt";
175 rel2 { relative: 0.0 1.0; to_x: "elm.text.gmt"; }
182 name: "elm.text.city";
188 state: "default" 0.0;
189 rel1 { relative: 1.0 1.0; to_x: "elm.padding.left"; to_y: "elm.padding.top"; }
190 rel2 { relative: 0.0 1.0; to_x: "elm.padding.gmt.left"; to_y: "elm.text.gmt"; }
193 //rel1{relative: (15/WIDTH) 0.0; }
194 //rel2{relative: 1.0 0.6; }
195 color: ADD_LIST_COLOR;
197 style: "city_textblock_style";
198 //font: ADD_LIST_FONT;
199 //size: ADD_LIST_FONT_SIZE;
205 state: "selected" 0.0;
206 inherit: "default" 0.0;
207 text.style: "city_textblock_selected_style";
208 //color: ADD_LIST_SELECTED_COLOR;
212 name: "elm.text.country";
218 state: "default" 0.0;
219 rel1 { relative: 1.0 1.0; to_x: "elm.padding.left"; to_y: "elm.text.city"; }
220 rel2 { relative: 0.0 0.0; to_x: "elm.padding.right"; to_y: "elm.padding.bottom"; }
221 //rel1{relative: (15/WIDTH) 0.6; }
222 //rel2{relative: 0.7 1.0; }
223 color: ADD_LIST_SUB_COLOR;
225 font: ADD_LIST_SUB_FONT;
226 size: ADD_LIST_SUB_FONT_SIZE;
232 state: "selected" 0.0;
233 inherit: "default" 0.0;
234 color: ADD_LIST_SELECTED_COLOR;
240 name: "elm.swallow.city";
246 state: "default" 0.0;
247 rel1{relative: (15/WIDTH) 0.0; }
248 rel2{relative: 1.0 0.6; }
255 name: "elm.swallow.country";
261 state: "default" 0.0;
262 rel1{relative: (15/WIDTH) 0.6; }
263 rel2{relative: 0.7 1.0; }
270 name: "elm.swallow.gmt";
276 state: "default" 0.0;
277 rel1{relative: 0.7 0.0; }
278 rel2{relative: (465.0/WIDTH) 0.6; }
283 WCL_GENLIST_PART_DISCLIP(COLOR_DISCLIP_DISABLE_COLOR)
289 signal: "elm,state,selected";
291 action: STATE_SET "selected" 0.0;
293 target: "elm.text.city";
294 target: "elm.text.country";
295 target: "elm.text.gmt";
299 signal: "elm,state,unselected";
301 action: STATE_SET "default" 0.0;
303 target: "elm.text.city";
304 target: "elm.text.country";
305 target: "elm.text.gmt";
306 transition: LINEAR 0.1;
310 signal: "elm,state,disabled";
312 action: STATE_SET "disabled" 0.0;
315 program { name: "go_enabled";
316 signal: "elm,state,enabled";
318 action: STATE_SET "default" 0.0;
324 //worldclock_addview_list_black
327 name: "elm/genlist/item/worldclock_addview_list_black/default";
328 alias: "elm/genlist/item_odd/worldclock_addview_list_black/default";
329 alias: "elm/genlist/item_compress/worldclock_addview_list_black/default";
330 alias: "elm/genlist/item_compress_odd/worldclock_addview_list_black/default";
331 data.item: "stacking" "above";
332 data.item: "selectraise" "on";
333 data.item: "texts" "elm.text.city elm.text.country elm.text.gmt";
334 //data.item: "contents" "elm.swallow.city elm.swallow.country elm.swallow.gmt";
335 data.item: "treesize" "20";
339 name: "city_textblock_black_style";
340 base: "font="ADD_LIST_FONT" font_size="ADD_LIST_FONT_SIZE" color="ADD_LIST_TEXTBLOCK_COLOR_BLACK" wrap=char text_class=list_item";
346 name: "city_textblock_black_selected_style";
347 base: "font="ADD_LIST_FONT" font_size="ADD_LIST_FONT_SIZE" color="ADD_LIST_SELECTED_TEXTBLOCK_COLOR_BLACK" wrap=char text_class=list_item";
362 min: 0 ADD_LIST_HEIGHT;
363 state: "default" 0.0;
364 color: COLOR_ADDVIEW_GENLIST_ITEM_BG_BLACK;
373 description { state: "default" 0.0;
376 description { state: "selected" 0.0;
377 inherit: "default" 0.0;
382 WCL_GENLIST_PART_BOTTOM_LINE( COLOR_BOTTOM_LINE_BLACK )
383 WCL_GENLIST_PART_PADDING_TOP( ADD_LIST_PADDING_TOP )
384 WCL_GENLIST_PART_PADDING_BOTTOM( ADD_LIST_PADDING_BOTTOM )
385 WCL_GENLIST_PART_PADDING_LEFT( ADD_LIST_PADDING_LEFT )
386 WCL_GENLIST_PART_PADDING_RIGHT( ADD_LIST_PADDING_RIGHT )
389 name: "elm.text.gmt";
395 state: "default" 0.0;
396 min: ADD_LIST_MIN_X ADD_LIST_MIN_Y;
398 rel1 { relative: 0.0 1.0; to_x: "elm.padding.right"; to_y: "elm.padding.top"; }
399 rel2 { relative: 0.0 1.0; to_x: "elm.padding.right"; to_y: "elm.padding.top"; }
401 color: ADD_LIST_GMT_COLOR_BLACK;
403 font: ADD_LIST_GMT_FONT;
404 size: ADD_LIST_GMT_FONT_SIZE;
410 state: "selected" 0.0;
411 inherit: "default" 0.0;
412 color: ADD_LIST_SELECTED_COLOR_BLACK;
416 name: "elm.padding.gmt.left";
422 state: "default" 0.0;
425 rel1.to_x: "elm.text.gmt";
426 rel2 { relative: 0.0 1.0; to_x: "elm.text.gmt"; }
433 name: "elm.text.city";
439 state: "default" 0.0;
440 //rel1 { relative: 1.0 1.0; to_x: "elm.padding.left"; to_y: "elm.padding.top"; }
441 //rel2 { relative: 0.0 1.0; to_x: "elm.padding.gmt.left"; to_y: "elm.text.gmt"; }
442 rel1{relative: (15/WIDTH) 0.0; }
443 rel2{relative: 1.0 0.6; }
445 color: ADD_LIST_COLOR_BLACK;
447 //style: "city_textblock_black_style";
449 size: ADD_LIST_FONT_SIZE;
455 state: "selected" 0.0;
456 inherit: "default" 0.0;
457 text.style: "city_textblock_black_selected_style";
458 color: ADD_LIST_SELECTED_COLOR_BLACK;
462 name: "elm.text.country";
468 state: "default" 0.0;
469 rel1 { relative: 1.0 1.0; to_x: "elm.padding.left"; to_y: "elm.text.city"; }
470 rel2 { relative: 0.0 0.0; to_x: "elm.padding.right"; to_y: "elm.padding.bottom"; }
471 color: ADD_LIST_SUB_COLOR_BLACK;
473 font: ADD_LIST_SUB_FONT;
474 size: ADD_LIST_SUB_FONT_SIZE;
480 state: "selected" 0.0;
481 inherit: "default" 0.0;
482 color: ADD_LIST_SELECTED_COLOR_BLACK;
488 name: "elm.swallow.city";
494 state: "default" 0.0;
495 rel1{relative: (15/WIDTH) 0.0; }
496 rel2{relative: 1.0 0.6; }
503 name: "elm.swallow.country";
509 state: "default" 0.0;
510 rel1{relative: (15/WIDTH) 0.6; }
511 rel2{relative: 0.7 1.0; }
518 name: "elm.swallow.gmt";
524 state: "default" 0.0;
525 rel1{relative: 0.7 0.0; }
526 rel2{relative: (465.0/WIDTH) 0.6; }
532 WCL_GENLIST_PART_DISCLIP(COLOR_DISCLIP_DISABLE_COLOR)
538 signal: "elm,state,selected";
540 action: STATE_SET "selected" 0.0;
542 target: "elm.text.city";
543 target: "elm.text.country";
544 target: "elm.text.gmt";
548 signal: "elm,state,unselected";
550 action: STATE_SET "default" 0.0;
552 target: "elm.text.city";
553 target: "elm.text.country";
554 target: "elm.text.gmt";
555 transition: LINEAR 0.1;
559 signal: "elm,state,disabled";
561 action: STATE_SET "disabled" 0.0;
564 program { name: "go_enabled";
565 signal: "elm,state,enabled";
567 action: STATE_SET "default" 0.0;