Version : 0813
[apps/native/sample/adventure.git] / res / edje / best_time.edc
1 #define ITEM_WIDTH 480
2 #define ITEM_HEIGHT 90
3
4 collections {
5    base_scale: 1.8;
6    images {
7       image: "result_bar.png" COMP;
8       image: "watch_icon.png" COMP;      
9    }
10    group { name: "best_time";
11       parts {
12          part { name: "base";
13             type: RECT;
14             scale: 1;
15              description { state: "default";
16                min: 0 ITEM_HEIGHT;
17                color: 255 255 255 0;               
18             }
19             description { state: "result" 0.0;
20                inherit: "default";
21                color: 255 255 255 255;
22             }
23          }
24          part { name: "mark";
25             type: IMAGE;
26             scale: 1;
27             clip_to: "base";
28              description { state: "default";
29                rel1 { relative: (38/ITEM_WIDTH) 0.5; to: "base"; }
30                rel2 { relative: (38/ITEM_WIDTH) 0.5; to: "base"; }
31                align: 0.5 0.5;
32                min: 30 30;
33                fixed: 1 1;
34                image.normal: "watch_icon.png";
35             }
36          }
37          part { name: "city";
38             type: TEXT;
39             scale: 1;
40             mouse_events: 0;
41             clip_to: "base";            
42              description { state: "default";
43                rel1 { relative: (73/ITEM_WIDTH) 0.5; to: "base"; }
44                rel2 { relative: (400/ITEM_WIDTH) 0.5; to: "base"; }
45                color: 197 191 181 255;
46                text {
47                   text: "Best Time";
48                   font: "Tizen:style="Bold"";
49                   text_class: "tizen";
50                   min: 0 1;
51                   size: 23;
52                   align: 0 1;
53                }
54                align: 0 1;
55             }
56          }
57          part { name: "time";
58             type: TEXT;
59             mouse_events: 0;
60             scale: 1;
61             clip_to: "base";            
62              description { state: "default";
63                rel1 { relative: 0.7 0.25; to: "city"; }
64                rel2 { relative: 0.95 0.25; to: "base"; }
65                color: 221 218 213 255;
66                text {
67                   text: "AM 9 - PM 3";
68                   font: "Tizen";
69                   text_class: "tizen";
70                   min:  0 1;
71                   size: 20;
72                   align: 1 1;
73                }
74                align: 0 0;
75             }
76          }
77          part { name: "result_bar";
78             type: IMAGE;
79             scale: 1;
80             clip_to: "graph";
81              description { state: "default";
82                rel1 { to_x: "city"; relative: 0 0.75; }
83                rel2 { to_x:"time"; relative: 1 0.75; }
84                fixed:1 1;
85                min: 0 15;
86                image.normal: "result_bar.png";
87                image.border: 3 3 3 3;
88                image.border_scale: 1;
89             }
90          }         
91          part { name: "graph";
92             type: RECT;
93             scale: 1;
94              description { state: "default";
95                rel1 { relative: (73/ITEM_WIDTH) 0.75; }
96                rel2 { to_x:"base"; relative: 0.95 0.75; }
97                min: 0 0;
98                color: 255 255 255 0;
99             }
100             description { state: "result";
101                inherit: "default";
102                min: 0 15;
103                color: 255 255 255 255;               
104             }
105          }         
106       }
107       programs {
108          program { name: "show";
109             signal: "momentic,item,state,show";
110             action: STATE_SET "result" 0.0;
111             target: "base";
112             target: "graph";
113             transition: DECELERATE 0.5;
114          }
115          program { name: "hide";
116             signal: "momentic,item,state,hide";
117             action: STATE_SET "default" 0.0;
118             target: "base";
119             target: "graph";
120             transition: DECELERATE 0.5;
121          }
122       }
123    }
124 }