apply FSL(Flora Software License)
[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
18 group {
19         name: "draglock-time";
20
21         styles {
22                 style {
23                         name: "style_time";
24                         base: "font=SLP:style=Medium font_size=140 color=#f9f9f9ff align=right valign=top";
25                 }
26                 style {
27                         name: "style_time_period";
28                         base: "font=HelveticaNeue:style=Medium font_size=38 color=#f9f9f9ff align=right";
29                 }
30         }
31
32         parts {
33                 part {
34                         name: "bg";
35                         type: RECT;
36
37                         description {
38                                 state: "default" 0.0;
39                                 color: 0 0 0 143;
40                         }
41                 }
42
43                 part {
44                         name: "padding.r";
45                         type: RECT;
46                         scale: 1;
47
48                         description {
49                                 state: "default" 0.0;
50                                 min: 22 0;
51                                 align: 1.0 0.0;
52
53                                 rel1 {
54                                         relative: 1.0 0.0;
55                                         to: "bg";
56                                 }
57                                 rel2 {
58                                         to: "bg";
59                                 }
60                                 visible: 0;
61                         }
62                 }
63
64                 part {
65                         name: "padding.top";
66                         type: RECT;
67                         scale: 1;
68
69                         description {
70                                 state: "default" 0.0;
71                                 min: 0 12;
72                                 align: 0.0 0.0;
73
74                                 rel1 {
75                                         to: "bg";
76                                 }
77                                 rel2 {
78                                         relative: 0.0 0.0;
79                                         to_x: "padding.r";
80                                         to_y: "bg";
81                                 }
82                                 visible: 0;
83                         }
84                 }
85
86                 part {
87                         name: "rect.date";
88                         type: RECT;
89                         scale: 1;
90
91                         description {
92                                 state: "default" 0.0;
93                                 min: 0 40;
94                                 align: 1.0 0.0;
95
96                                 rel1 {
97                                         relative: 0.0 1.0;
98                                         to_x: "bg";
99                                         to_y: "padding.top";
100                                 }
101                                 rel2 {
102                                         relative: 0.0 1.0;
103                                         to_x: "padding.r";
104                                         to_y: "padding.top";
105                                 }
106                                 visible: 0;
107                         }
108                 }
109
110                 part {
111                         name: "text.date";
112                         type: TEXT;
113                         scale: 1;
114
115                         description {
116                                 state: "default" 0.0;
117                                 text {
118                                         font: "SLP:style=Medium";
119                                         size: 34;
120                                         min: 0 0;
121                                         align: 1.0 0.5;
122                                 }
123                                 color: 249 249 249 255;
124                                 rel1 {
125                                         to: "rect.date";
126                                 }
127                                 rel2 {
128                                         to: "rect.date";
129                                 }
130                         }
131                 }
132
133                 part {
134                         name: "rect.time";
135                         type: RECT;
136                         scale: 1;
137
138                         description {
139                                 state: "default" 0.0;
140                                 min: 0 140;
141                                 align: 1.0 0.0;
142
143                                 rel1 {
144                                         relative: 0.0 1.0;
145                                         to_x: "bg";
146                                         to_y: "rect.date";
147                                 }
148                                 rel2 {
149                                         relative: 0.0 1.0;
150                                         to_x: "padding.r";
151                                         to_y: "rect.date";
152                                 }
153                                 visible: 0;
154                         }
155                 }
156
157                 part {
158                         name: "text.time";
159                         type: TEXTBLOCK;
160                         scale: 1;
161
162                         description {
163                                 state: "default" 0.0;
164                                 text {
165                                         style: "style_time";
166                                 }
167                                 color: 249 249 249 255;
168                                 rel1 {
169                                         to: "rect.time";
170                                 }
171                                 rel2 {
172                                         to: "rect.time";
173                                 }
174                         }
175                 }
176
177                 part {
178                         name: "rect.time.period";
179                         type: RECT;
180                         scale: 1;
181
182                         description {
183                                 state: "default" 0.0;
184                                 min: 314 13;
185                                 align: 1.0 1.0;
186
187                                 rel1 {
188                                         relative: 1.0 1.0;
189                                         to_x: "bg";
190                                         to_y: "rect.time";
191                                 }
192                                 rel2 {
193                                         relative: 1.0 1.0;
194                                         to_x: "bg";
195                                         to_y: "rect.time";
196                                 }
197                                 visible: 0;
198                         }
199                         description {
200                                 state: "stretch" 0.0;
201                                 inherit: "default" 0.0;
202                                 min: 392 13;
203                         }
204                 }
205
206                 part {
207                         name: "text.time.period";
208                         type: TEXTBLOCK;
209                         scale: 1;
210
211                         description {
212                                 state: "default" 0.0;
213                                 min: 0 38;
214                                 align: 1 1;
215
216                                 text {
217                                         style: "style_time_period";
218                                 }
219                                 rel1 {
220                                         relative: 0.0 0.0;
221                                         to_x: "bg";
222                                         to_y: "rect.time.period";
223                                 }
224                                 rel2 {
225                                         relative: 0.0 0.0;
226                                         to: "rect.time.period";
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 }