3 * Copyright 2012 Samsung Electronics Co., Ltd
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
9 * http://www.tizenopensource.org/license
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.
18 #include "../../../res/edc/nbeat-black-inc.edc"
19 #include "../../../res/edc/genlist_macro.edc"
20 #include "worldclock_macro.edc"
22 //#define NAVI_BAR_H 55
27 #define HD_HEIGHT 1280
30 #define COLOR_GENLIST_ITEM_BG 48 48 48 255
31 #define COLOR_GENLIST_ITEM_PRESSED_BG 107 100 88 255
32 #define COLOR_GENLIST_ITEM_BOTTOM_LINE_BG 82 82 82 255
34 #define COLOR_ADDVIEW_GENLIST_ITEM_BG 249 249 249 255
35 #define COLOR_ADDVIEW_GENLIST_ITEM_BG_BLACK 0 0 0 255
37 #define COLOR_BOTTOM_LINE 199 199 199 255
38 #define COLOR_BOTTOM_LINE_BLACK 68 68 68 255
40 #define COLOR_DISCLIP_DISABLE_COLOR 255 255 255 64
43 #define MAIN_LIST_HEIGHT 205
44 #define MAIN_LIST_FONT "SLP:style=Roman"
45 #define MAIN_LIST_FONT_SIZE 57
46 #define MAIN_LIST_SUB_FONT "SLP:style=Medium"
47 #define MAIN_LIST_SUB_FONT_SIZE 40
48 #define MAIN_LIST_CITY_COLOR 255 255 255 255
49 #define MAIN_LIST_TIME_COLOR 217 147 26 255
50 #define MAIN_LIST_DATE_COLOR 166 166 166 255
53 #define ADD_LIST_HEIGHT 129
54 #define ADD_LIST_FONT "SLP:style=Roman"
55 #define ADD_LIST_FONT_SIZE 44
56 #define ADD_LIST_SUB_FONT "SLP:style=Medium"
57 #define ADD_LIST_SUB_FONT_SIZE 32
58 #define ADD_LIST_GMT_FONT "SLP:style=Medium"
59 #define ADD_LIST_GMT_FONT_SIZE 32
60 #define ADD_LIST_COLOR 0 0 0 255
61 #define ADD_LIST_SUB_COLOR 108 108 108 255
62 #define ADD_LIST_GMT_COLOR 108 108 108 255
63 #define ADD_LIST_SELECTED_COLOR 255 255 255 255
64 #define ADD_LIST_COLOR_BLACK 249 249 249 255
65 #define ADD_LIST_SUB_COLOR_BLACK 100 100 100 255
66 #define ADD_LIST_GMT_COLOR_BLACK 100 100 100 255
67 #define ADD_LIST_SELECTED_COLOR_BLACK 249 249 249 255
68 #define ADD_LIST_TEXTBLOCK_COLOR "#4E4E4EFF"
69 #define ADD_LIST_SELECTED_TEXTBLOCK_COLOR "#4E4E4EFF"
70 #define ADD_LIST_TEXTBLOCK_COLOR_BLACK "#F9F9F9FF"
71 #define ADD_LIST_SELECTED_TEXTBLOCK_COLOR_BLACK "#F9F9F9FF"
73 #define ADD_LIST_PADDING_TOP 10
74 #define ADD_LIST_PADDING_BOTTOM 10
75 #define ADD_LIST_PADDING_LEFT 16
76 #define ADD_LIST_PADDING_RIGHT 16
77 #define ADD_LIST_MIN_X 153
78 #define ADD_LIST_MIN_Y 61
81 #define EDIT_LIST_HEIGHT 129
82 #define EDIT_LIST_FONT "SLP:style=Roman"
83 #define EDIT_LIST_FONT_SIZE 44
84 #define EDIT_LIST_SUB_FONT "SLP:style=Medium"
85 #define EDIT_LIST_SUB_FONT_SIZE 32
89 //worldclock_addview_list_black
92 name: "elm/genlist/item/worldclock_addview_list_black/default";
93 alias: "elm/genlist/item_odd/worldclock_addview_list_black/default";
94 alias: "elm/genlist/item_compress/worldclock_addview_list_black/default";
95 alias: "elm/genlist/item_compress_odd/worldclock_addview_list_black/default";
96 data.item: "stacking" "above";
97 data.item: "selectraise" "on";
98 data.item: "texts" "elm.text.city elm.text.country elm.text.gmt";
99 //data.item: "contents" "elm.swallow.city elm.swallow.country elm.swallow.gmt";
100 data.item: "treesize" "20";
104 name: "city_textblock_black_style";
105 base: "font="ADD_LIST_FONT" font_size="ADD_LIST_FONT_SIZE" color="ADD_LIST_TEXTBLOCK_COLOR_BLACK" wrap=char text_class=list_item";
111 name: "city_textblock_black_selected_style";
112 base: "font="ADD_LIST_FONT" font_size="ADD_LIST_FONT_SIZE" color="ADD_LIST_SELECTED_TEXTBLOCK_COLOR_BLACK" wrap=char text_class=list_item";
127 min: 0 ADD_LIST_HEIGHT;
128 state: "default" 0.0;
129 color: COLOR_ADDVIEW_GENLIST_ITEM_BG_BLACK;
138 description { state: "default" 0.0;
141 description { state: "selected" 0.0;
142 inherit: "default" 0.0;
147 WCL_GENLIST_PART_BOTTOM_LINE( COLOR_BOTTOM_LINE_BLACK )
148 WCL_GENLIST_PART_PADDING_TOP( ADD_LIST_PADDING_TOP )
149 WCL_GENLIST_PART_PADDING_BOTTOM( ADD_LIST_PADDING_BOTTOM )
150 WCL_GENLIST_PART_PADDING_LEFT( ADD_LIST_PADDING_LEFT )
151 WCL_GENLIST_PART_PADDING_RIGHT( ADD_LIST_PADDING_RIGHT )
154 name: "elm.text.gmt";
160 state: "default" 0.0;
161 min: ADD_LIST_MIN_X ADD_LIST_MIN_Y;
163 rel1 { relative: 0.0 1.0; to_x: "elm.padding.right"; to_y: "elm.padding.top"; }
164 rel2 { relative: 0.0 1.0; to_x: "elm.padding.right"; to_y: "elm.padding.top"; }
166 color: ADD_LIST_GMT_COLOR_BLACK;
168 font: ADD_LIST_GMT_FONT;
169 size: ADD_LIST_GMT_FONT_SIZE;
175 state: "selected" 0.0;
176 inherit: "default" 0.0;
177 color: ADD_LIST_SELECTED_COLOR_BLACK;
181 name: "elm.padding.gmt.left";
187 state: "default" 0.0;
190 rel1.to_x: "elm.text.gmt";
191 rel2 { relative: 0.0 1.0; to_x: "elm.text.gmt"; }
198 name: "elm.text.city";
204 state: "default" 0.0;
205 //rel1 { relative: 1.0 1.0; to_x: "elm.padding.left"; to_y: "elm.padding.top"; }
206 //rel2 { relative: 0.0 1.0; to_x: "elm.padding.gmt.left"; to_y: "elm.text.gmt"; }
207 rel1{relative: (15/WIDTH) 0.0; }
208 rel2{relative: 1.0 0.6; }
210 color: ADD_LIST_COLOR_BLACK;
212 //style: "city_textblock_black_style";
214 size: ADD_LIST_FONT_SIZE;
220 state: "selected" 0.0;
221 inherit: "default" 0.0;
222 text.style: "city_textblock_black_selected_style";
223 color: ADD_LIST_SELECTED_COLOR_BLACK;
227 name: "elm.text.country";
233 state: "default" 0.0;
234 rel1 { relative: 1.0 1.0; to_x: "elm.padding.left"; to_y: "elm.text.city"; }
235 rel2 { relative: 0.0 0.0; to_x: "elm.padding.right"; to_y: "elm.padding.bottom"; }
236 color: ADD_LIST_SUB_COLOR_BLACK;
238 font: ADD_LIST_SUB_FONT;
239 size: ADD_LIST_SUB_FONT_SIZE;
245 state: "selected" 0.0;
246 inherit: "default" 0.0;
247 color: ADD_LIST_SELECTED_COLOR_BLACK;
253 name: "elm.swallow.city";
259 state: "default" 0.0;
260 rel1{relative: (15/WIDTH) 0.0; }
261 rel2{relative: 1.0 0.6; }
268 name: "elm.swallow.country";
274 state: "default" 0.0;
275 rel1{relative: (15/WIDTH) 0.6; }
276 rel2{relative: 0.7 1.0; }
283 name: "elm.swallow.gmt";
289 state: "default" 0.0;
290 rel1{relative: 0.7 0.0; }
291 rel2{relative: (465.0/WIDTH) 0.6; }
297 WCL_GENLIST_PART_DISCLIP(COLOR_DISCLIP_DISABLE_COLOR)
303 signal: "elm,state,selected";
305 action: STATE_SET "selected" 0.0;
307 target: "elm.text.city";
308 target: "elm.text.country";
309 target: "elm.text.gmt";
313 signal: "elm,state,unselected";
315 action: STATE_SET "default" 0.0;
317 target: "elm.text.city";
318 target: "elm.text.country";
319 target: "elm.text.gmt";
320 transition: LINEAR 0.1;
324 signal: "elm,state,disabled";
326 action: STATE_SET "disabled" 0.0;
329 program { name: "go_enabled";
330 signal: "elm,state,enabled";
332 action: STATE_SET "default" 0.0;
338 //worldclock_editview_list
341 name: "elm/genlist/item/worldclock_editview_list/default";
342 alias: "elm/genlist/item_odd/worldclock_editview_list/default";
343 data.item: "stacking" "above";
344 data.item: "selectraise" "on";
345 data.item: "contents" "elm.swallow.checkbox";
346 data.item: "texts" "elm.text.city elm.text.time";
347 data.item: "treesize" "20";
358 min: 0 EDIT_LIST_HEIGHT;
359 state: "default" 0.0;
360 color: COLOR_GENLIST_ITEM_BG;
363 GENLIST_PART_BG_IMAGE
364 GENLIST_PART_BOTTOM_LINE
368 name: "elm.swallow.checkbox";
375 state: "default" 0.0;
378 rel1 {relative: (15.0/WIDTH) (42.0/EDIT_LIST_HEIGHT); to: "bg_image";}
379 rel2 {relative: ((15.0+44.0)/WIDTH) ((42.0+44.0)/EDIT_LIST_HEIGHT); to: "bg_image";}
385 name: "elm.text.city";
392 state: "default" 0.0;
393 color: 255 255 255 255;
394 rel1 {relative: (74.0/WIDTH) 0.0; to: "bg_image";}
395 rel2 {relative: (458.0/WIDTH) 0.6; to: "bg_image";}
398 font: EDIT_LIST_FONT;
399 size: EDIT_LIST_FONT_SIZE;
407 name: "elm.text.time";
414 state: "default" 0.0;
415 color: 246 105 20 255;
416 rel1 {relative: (74.0/WIDTH) 0.6; to: "bg_image";}
417 rel2 {relative: (458.0/WIDTH) 1.0; to: "bg_image";}
420 font: EDIT_LIST_SUB_FONT;
421 size: EDIT_LIST_SUB_FONT_SIZE;
429 name: "elm.swallow.end";
435 state: "default" 0.0;
437 rel1 {relative: (358.0/WIDTH) (24.0/EDIT_LIST_HEIGHT); to: "bg_image";}
438 rel2 {relative: ((358.0+80.0)/WIDTH) ((24.0+80.0)/EDIT_LIST_HEIGHT); to: "bg_image";}
446 PROGRAM_GENLIST_DEFAULT()
450 //worldclock_mainview_list
453 name: "elm/genlist/item/worldclock_mainview_list/default";
454 alias: "elm/genlist/item_odd/worldclock_mainview_list/default";
455 alias: "elm/genlist/item_compress/worldclock_mainview_list/default";
456 alias: "elm/genlist/item_compress_odd/worldclock_mainview_list/default";
457 data.item: "stacking" "above";
458 data.item: "selectraise" "on";
459 data.item: "texts" "elm.text.city elm.text.time elm.text.date";
460 data.item: "contents" "elm.swallow.dst elm.swallow.bg elm.swallow.hour elm.swallow.min elm.swallow.sec elm.swallow.center";
461 data.item: "treesize" "20";
464 // padding used for layout city name & dst icon
465 GENLIST_PART_PADDING_TOP( 40 )
466 GENLIST_PART_PADDING_BOTTOM( 112 )
467 GENLIST_PART_PADDING_LEFT( 16 )
468 GENLIST_PART_PADDING_RIGHT( 504 )
478 min: 0 MAIN_LIST_HEIGHT;
479 state: "default" 0.0;
480 color: COLOR_GENLIST_ITEM_BG;
484 GENLIST_PART_BG_IMAGE
485 GENLIST_PART_BOTTOM_LINE
489 name: "elm.swallow.dst";
495 state: "default" 0.0;
497 rel1 {relative: 1.0 1.0; to_x: "elm.padding.city.right"; to_y: "elm.padding.top";}
498 rel2 {relative: 1.0 0.0; to_x: "elm.padding.city.right"; to_y: "elm.padding.bottom";}
504 name: "elm.padding.city.right";
508 state: "default" 0.0;
512 rel1 { relative: 1.0 0.0; to_x: "elm.text.city"; }
513 rel2.to_x: "elm.text.city";
520 name: "elm.text.city";
526 state: "default" 0.0;
531 color: MAIN_LIST_CITY_COLOR;
532 rel1 { relative: 1.0 1.0; to_x: "elm.padding.left"; to_y: "elm.padding.top"; }
533 rel2 { relative: 1.0 0.0; to_x: "elm.padding.left"; to_y: "elm.padding.bottom"; }
536 font: MAIN_LIST_FONT;
537 size: MAIN_LIST_FONT_SIZE;
546 name: "elm.text.time";
552 state: "default" 0.0;
553 color: MAIN_LIST_TIME_COLOR;
554 rel1 {relative: (16.0/HD_WIDTH) (112.0/MAIN_LIST_HEIGHT); to: "bg_image";}
555 rel2 {relative: (504.0/HD_WIDTH) (164.0/MAIN_LIST_HEIGHT); to: "bg_image";}
558 font: MAIN_LIST_SUB_FONT;
559 size: MAIN_LIST_SUB_FONT_SIZE;
567 name: "elm.text.date";
573 state: "default" 0.0;
574 color: MAIN_LIST_DATE_COLOR;
575 rel1 {relative: (16.0/HD_WIDTH) (112.0/MAIN_LIST_HEIGHT); to: "bg_image";}
576 rel2 {relative: (504.0/HD_WIDTH) (164.0/MAIN_LIST_HEIGHT); to: "bg_image";}
579 font: MAIN_LIST_SUB_FONT;
580 size: MAIN_LIST_SUB_FONT_SIZE;
588 name: "elm.rect.clock";
594 state: "default" 0.0;
596 rel1 {relative: (524.0/HD_WIDTH) (12.0/MAIN_LIST_HEIGHT); to: "bg_image";}
597 rel2 {relative: (704.0/HD_WIDTH) (192.0/MAIN_LIST_HEIGHT); to: "bg_image";}
602 name: "elm.swallow.clockicon";
609 state: "default" 0.0;
610 rel1 {relative: 0.0 0.0; to: "elm.rect.clock";}
611 rel2 {relative: 1.0 1.0; to: "elm.rect.clock";}
616 name: "elm.swallow.bg";
623 state: "default" 0.0;
624 rel1 {relative: 0.0 0.0; to: "elm.rect.clock";}
625 rel2 {relative: 1.0 1.0; to: "elm.rect.clock";}
630 name: "elm.swallow.hour";
637 state: "default" 0.0;
638 rel1 {relative: 0.0 0.0; to: "elm.rect.clock";}
639 rel2 {relative: 1.0 1.0; to: "elm.rect.clock";}
644 name: "elm.swallow.min";
651 state: "default" 0.0;
652 rel1 {relative: 0.0 0.0; to: "elm.rect.clock";}
653 rel2 {relative: 1.0 1.0; to: "elm.rect.clock";}
658 name: "elm.swallow.sec";
665 state: "default" 0.0;
666 rel1 {relative: 0.0 0.0; to: "elm.rect.clock";}
667 rel2 {relative: 1.0 1.0; to: "elm.rect.clock";}
672 name: "elm.swallow.center";
679 state: "default" 0.0;
680 rel1 {relative: 0.0 0.0; to: "elm.rect.clock";}
681 rel2 {relative: 1.0 1.0; to: "elm.rect.clock";}
688 PROGRAM_GENLIST_DEFAULT()