initial commit
[profile/tv/apps/native/homescreen.git] / edje / bar / dbar.edc
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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 #include "../../include/defs.h"
18
19 group {
20         name, GRP_DBAR_ITEM;
21         styles {
22                 style {
23                         name: "noctnt_desc_style";
24                         base: "font=TizenSans:style=Bold font_size=24 color=#868686 wrap=word left_margin=2 right_margin=2 align=center";
25                         tag: "hilight" "+ font_weight=Bold";
26                         tag: "b" "+ font_weight=Bold";
27                 }
28         }
29         parts {
30                 part {
31                         name, "bg";
32                         type, RECT;
33                         description {
34                                 state, "default" 0.0;
35                                 color, 0 0 0 0;
36                         }
37                 }
38                 part {
39                         name, "clip";
40                         type, RECT;
41                         description {
42                                 state, "default" 0.0;
43                                 color, 0 0 0 0;
44                         }
45                         description {
46                                 state, "show" 0.0;
47                                 color, 255 255 255 255;
48                         }
49                 }
50                 part {
51                         name, PART_DEFAULT_TITLE;
52                         type, TEXT;
53                         clip_to, "clip";
54                         scale, 1;
55                         description {
56                                 state, "default" 0.0;
57                                 rel1.relative, 0.5 0.5;
58                                 rel2.relative, 0.5 0.5;
59                                 text {
60                                         font, "TizenSans:style=Bold";
61                                         size, 35;
62                                 }
63                                 align, 0.5 1.0;
64                                 color, 211 211 211 255;
65                         }
66                 }
67                 part {
68                         name, PART_DEFAULT_DESC;
69                         type, TEXTBLOCK;
70                         clip_to, "clip";
71                         scale, 1;
72                         description {
73                                 state, "default" 0.0;
74                                 rel1.relative, 0.05 0.5;
75                                 rel2.relative, 0.95 0.5;
76                                 text {
77                                         font, "TizenSans:style=Bold";
78                                         style, "noctnt_desc_style";
79                                         min, 0 1;
80                                 }
81                                 align, 0.5 0.0;
82                                 fixed, 1 1;
83                                 color, 134 134 134 255;
84                         }
85                 }
86                 part {
87                         name, PART_CONTENT;
88                         type, SWALLOW;
89                         clip_to, "clip";
90                         description {
91                                 state, "default" 0.0;
92                         }
93                 }
94         }
95         programs {
96                 program {
97                         name, "show";
98                         signal, SIG_SHOW;
99                         source, SRC_PROG;
100                         action, STATE_SET "show" 0.0;
101                         transition, LINEAR 0.3;
102                         target, "clip";
103                 }
104                 program {
105                         name, "hide";
106                         signal, SIG_HIDE;
107                         source, SRC_PROG;
108                         action, STATE_SET "default" 0.0;
109                         transition, LINEAR 0.1;
110                         target, "clip";
111                 }
112         }
113 }
114
115 group {
116         name, GRP_DBAR_LABEL;
117         parts {
118                 part {
119                         name, "bg";
120                         type, RECT;
121                         description {
122                                 state, "default" 0.0;
123                                 min, 586 90;
124                                 visible, 0;
125                         }
126                 }
127                 part {
128                         name, "guide";
129                         type, RECT;
130                         description {
131                                 state, "default" 0.0;
132                                 rel1.relative, 0.0 1.0;
133                                 min, 0 20;
134                                 align, 0.5 0.0;
135                                 visible, 0;
136                         }
137                 }
138                 part {
139                         name, PART_TITLE;
140                         type, TEXT;
141                         description {
142                                 state, "default" 0.0;
143                                 rel1 {
144                                         to, "guide";
145                                         relative, 0.5 1.0;
146                                 }
147                                 rel2 {
148                                         to, "guide";
149                                         relative, 0.5 1.0;
150                                 }
151                                 min, 568 73;
152                                 fixed, 1 1;
153                                 align, 0.5 1.0;
154                                 text {
155                                         font, "TizenSans:style=Bold";
156                                         size, 27;
157                                         align, 0.0 0.5;
158                                         min, 0 0;
159                                 }
160                                 color, 211 211 211 255;
161                         }
162                 }
163         }
164 }
165
166 group {
167         name, GRP_DBAR_COMMON;
168         parts {
169                 part {
170                         name, "over";
171                         type, RECT;
172                         scale, 1;
173                         description {
174                                 state, "default" 0.0;
175                                 color, 0 0 0 0;
176                         }
177                 }
178                 part {
179                         name, "clip";
180                         type, RECT;
181                         scale, 1;
182                         description {
183                                 state, "default" 0.0;
184                                 min, 596 255;
185                                 color, 255 255 255 255;
186                         }
187                 }
188                 part {
189                         name, PART_THUMB;
190                         type, SWALLOW;
191                         scale, 1;
192                         clip_to, "clip";
193                         description {
194                                 state, "default" 0.0;
195                                 rel2 {
196                                         to, PART_TITLE;
197                                         relative, 1.0 0.0;
198                                 }
199                         }
200                 }
201                 part {
202                         name, "text.bg";
203                         type, RECT;
204                         scale, 1;
205                         clip_to, "clip";
206                         description {
207                                 state, "default" 0.0;
208                                 rel1.to, PART_TITLE;
209                                 rel2.to, PART_TITLE;
210                                 color, 40 40 40 191;
211                         }
212                 }
213                 part {
214                         name, "clip.bg";
215                         type, RECT;
216                         scale, 1;
217                         description {
218                                 state, "default" 0.0;
219                                 rel1 {
220                                         to, "text.bg";
221                                         relative, -1.0 0.0;
222                                 }
223                                 rel2 {
224                                         to, "text.bg";
225                                         relative, 0.0 1.0;
226                                 }
227                         }
228                         description {
229                                 state, "focus" 0.0;
230                                 inherit, "default" 0.0;
231                                 rel1.relative, 0.0 0.0;
232                                 rel2.relative, 1.0 1.0;
233                         }
234                         description {
235                                 state, "prev" 0.0;
236                                 inherit, "default" 0.0;
237                                 rel1.relative, 0.0 -1.0;
238                                 rel2.relative, 1.0 0.0;
239                         }
240                         description {
241                                 state, "next" 0.0;
242                                 inherit, "default" 0.0;
243                                 rel1.relative, 0.0 1.0;
244                                 rel2.relative, 1.0 2.0;
245                         }
246                 }
247                 part {
248                         name, PART_BG;
249                         type, SWALLOW;
250                         scale, 1;
251                         clip_to, "clip.bg";
252                         description {
253                                 state, "default" 0.0;
254                                 rel1.to, "text.bg";
255                                 rel2.to, "text.bg";
256                         }
257                 }
258                 part {
259                         name, PART_TITLE;
260                         type, TEXT;
261                         clip_to, "clip";
262                         description {
263                                 state, "default" 0.0;
264                                 rel1.relative, 0.0 1.0;
265                                 min, 0 63;
266                                 fixed, 0 1;
267                                 align, 0.5 1.0;
268                                 text {
269                                         font, "TizenSans:style=Bold";
270                                         size, 20;
271                                         min, 0 0;
272                                         align, 0.041 0.5;
273                                 }
274                         }
275                 }
276         }
277         programs {
278                 program {
279                         name, "initial_focus_pre";
280                         signal, SIG_INITIAL_FOCUS;
281                         source, SRC_PROG;
282                         action, STATE_SET "default" 0.0;
283                         target, "clip.bg";
284                         after, "focus";
285                 }
286                 program {
287                         name, "focus";
288                         signal, SIG_FOCUS;
289                         source, SRC_PROG;
290                         action, STATE_SET "focus" 0.0;
291                         transition, LINEAR 0.35;
292                         target, "clip.bg";
293                 }
294                 program {
295                         name, "focus_from_next";
296                         signal, SIG_FOCUS_FROM_DOWN;
297                         source, SRC_PROG;
298                         action, STATE_SET "next" 0.0;
299                         target, "clip.bg";
300                         after, "focus";
301                 }
302                 program {
303                         name, "focus_from_prev";
304                         signal, SIG_FOCUS_FROM_UP;
305                         source, SRC_PROG;
306                         action, STATE_SET "prev" 0.0;
307                         target, "clip.bg";
308                         after, "focus";
309                 }
310                 program {
311                         name, "unfocus_to_next";
312                         signal, SIG_UNFOCUS_TO_DOWN;
313                         source, SRC_PROG;
314                         action, STATE_SET "next" 0.0;
315                         transition, LINEAR 0.35;
316                         target, "clip.bg";
317                 }
318                 program {
319                         name, "unfocus_to_prev";
320                         signal, SIG_UNFOCUS_TO_UP;
321                         source, SRC_PROG;
322                         action, STATE_SET "prev" 0.0;
323                         transition, LINEAR 0.35;
324                         target, "clip.bg";
325                 }
326                 program {
327                         name, "unfocus";
328                         signal, SIG_UNFOCUS_TO_HBAR;
329                         source, SRC_PROG;
330                         action, STATE_SET "default" 0.0;
331                         transition, LINEAR 0.35;
332                         target, "clip.bg";
333                 }
334                 program {
335                         name, "hide";
336                         signal, SIG_HIDE;
337                         source, SRC_PROG;
338                         action, STATE_SET "default" 0.0;
339                         target, "clip.bg";
340                 }
341         }
342 }