tizen_2.0_build
[apps/home/draglock.git] / res / edje / draglock-time.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
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
7  *
8  *  http://www.tizenopensource.org/license
9  *
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.
15  */
16
17 group {
18         name: "draglock-time";
19
20         parts {
21                 part {
22                         name: "bg";
23                         type: RECT;
24
25                         description {
26                                 state: "default" 0.0;
27                                 color: 0 0 0 143;
28                         }
29                 }
30
31                 part {
32                         name: "padding.r";
33                         type: RECT;
34                         scale: 1;
35
36                         description {
37                                 state: "default" 0.0;
38                                 min: 22 0;
39                                 align: 1.0 0.0;
40
41                                 rel1 {
42                                         relative: 1.0 0.0;
43                                         to: "bg";
44                                 }
45                                 rel2 {
46                                         to: "bg";
47                                 }
48                                 visible: 0;
49                         }
50                 }
51
52                 part {
53                         name: "padding.top";
54                         type: RECT;
55                         scale: 1;
56
57                         description {
58                                 state: "default" 0.0;
59                                 min: 0 12;
60                                 align: 0.0 0.0;
61
62                                 rel1 {
63                                         to: "bg";
64                                 }
65                                 rel2 {
66                                         relative: 0.0 0.0;
67                                         to_x: "padding.r";
68                                         to_y: "bg";
69                                 }
70                                 visible: 0;
71                         }
72                 }
73
74                 part {
75                         name: "rect.date";
76                         type: RECT;
77                         scale: 1;
78
79                         description {
80                                 state: "default" 0.0;
81                                 min: 0 40;
82                                 align: 1.0 0.0;
83
84                                 rel1 {
85                                         relative: 0.0 1.0;
86                                         to_x: "bg";
87                                         to_y: "padding.top";
88                                 }
89                                 rel2 {
90                                         relative: 0.0 1.0;
91                                         to_x: "padding.r";
92                                         to_y: "padding.top";
93                                 }
94                                 visible: 0;
95                         }
96                 }
97
98                 part {
99                         name: "text.date";
100                         type: TEXT;
101                         scale: 1;
102
103                         description {
104                                 state: "default" 0.0;
105                                 text {
106                                         font: "SLP:style=Medium";
107                                         text_class: "slp_medium";
108                                         size: 34;
109                                         min: 0 0;
110                                         align: 1.0 0.5;
111                                 }
112                                 color: 249 249 249 255;
113                                 rel1 {
114                                         to: "rect.date";
115                                 }
116                                 rel2 {
117                                         to: "rect.date";
118                                 }
119                         }
120                 }
121
122                 part {
123                         name: "rect.time";
124                         type: RECT;
125                         scale: 1;
126
127                         description {
128                                 state: "default" 0.0;
129                                 min: 0 140;
130                                 align: 1.0 0.0;
131
132                                 rel1 {
133                                         relative: 0.0 1.0;
134                                         to_x: "bg";
135                                         to_y: "rect.date";
136                                 }
137                                 rel2 {
138                                         relative: 0.0 1.0;
139                                         to_x: "padding.r";
140                                         to_y: "rect.date";
141                                 }
142                                 visible: 0;
143                         }
144                 }
145
146                 part {
147                         name: "text.time";
148                         type: TEXT;
149                         scale: 1;
150
151                         description {
152                                 state: "default" 0.0;
153                                 color: 249 249 249 255;
154
155                                 rel1 {
156                                         to: "rect.time";
157                                 }
158                                 rel2 {
159                                         to: "rect.time";
160                                 }
161                                 text {
162                                         font: "SLP:style=Medium";
163                                         text_class: "slp_medium";
164                                         size: 140;
165                                         min: 0 0;
166                                         align: 1.0 0.5;
167                                 }
168                         }
169                 }
170
171                 part {
172                         name: "rect.time.period";
173                         type: RECT;
174                         scale: 1;
175
176                         description {
177                                 state: "default" 0.0;
178                                 min: 314 13;
179                                 align: 1.0 1.0;
180                                 fixed: 1.0 1.0;
181
182                                 rel1 {
183                                         relative: 1.0 1.0;
184                                         to_x: "bg";
185                                         to_y: "rect.time";
186                                 }
187                                 rel2 {
188                                         relative: 1.0 1.0;
189                                         to_x: "bg";
190                                         to_y: "rect.time";
191                                 }
192                                 visible: 0;
193                         }
194                         description {
195                                 state: "stretch" 0.0;
196                                 inherit: "default" 0.0;
197                                 min: 392 13;
198                         }
199                 }
200
201                 part {
202                         name: "text.time.period";
203                         type: TEXT;
204                         scale: 1;
205
206                         description {
207                                 state: "default" 0.0;
208                                 min: 0 38;
209                                 align: 1 1;
210                                 color: 249 249 249 255;
211
212                                 rel1 {
213                                         relative: 0.0 0.0;
214                                         to_x: "bg";
215                                         to_y: "rect.time.period";
216                                 }
217                                 rel2 {
218                                         relative: 0.0 0.0;
219                                         to: "rect.time.period";
220                                 }
221                                 text {
222                                         font: "SLP:style=Medium";
223                                         text_class: "slp_medium";
224                                         size: 38;
225                                         min: 0 0;
226                                         align: 1.0 0.0;
227                                 }
228                         }
229                 }
230         }
231
232         programs {
233                 program{
234                         name: "period.default";
235                         signal: "period.default";
236                         source: "rect.time.period";
237                         action: STATE_SET "default" 0.0;
238                         target: "rect.time.period";
239                 }
240                 program{
241                         name: "period.stretch";
242                         signal: "period.stretch";
243                         source: "rect.time.period";
244                         action: STATE_SET "stretch" 0.0;
245                         target: "rect.time.period";
246                 }
247         }
248 }