remove edje_cc warning
[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                                         min, 1 1;
63                                         ellipsis, -1.0;
64                                 }
65                                 align, 0.5 1.0;
66                                 fixed, 1 1;
67                                 color, 211 211 211 255;
68                         }
69                 }
70                 part {
71                         name, PART_DEFAULT_DESC;
72                         type, TEXTBLOCK;
73                         clip_to, "clip";
74                         scale, 1;
75                         description {
76                                 state, "default" 0.0;
77                                 rel1.relative, 0.05 0.5;
78                                 rel2.relative, 0.95 0.5;
79                                 text {
80                                         font, "TizenSans:style=Bold";
81                                         style, "noctnt_desc_style";
82                                         min, 0 1;
83                                 }
84                                 align, 0.5 0.0;
85                                 fixed, 1 1;
86                                 color, 134 134 134 255;
87                         }
88                 }
89                 part {
90                         name, PART_CONTENT;
91                         type, SWALLOW;
92                         clip_to, "clip";
93                         description {
94                                 state, "default" 0.0;
95                         }
96                 }
97         }
98         programs {
99                 program {
100                         name, "show";
101                         signal, SIG_SHOW;
102                         source, SRC_PROG;
103                         action, STATE_SET "show" 0.0;
104                         transition, LINEAR 0.3;
105                         target, "clip";
106                 }
107                 program {
108                         name, "hide";
109                         signal, SIG_HIDE;
110                         source, SRC_PROG;
111                         action, STATE_SET "default" 0.0;
112                         transition, LINEAR 0.1;
113                         target, "clip";
114                 }
115         }
116 }
117
118 group {
119         name, GRP_DBAR_LABEL;
120         parts {
121                 part {
122                         name, "bg";
123                         type, RECT;
124                         description {
125                                 state, "default" 0.0;
126                                 min, 586 90;
127                                 visible, 0;
128                         }
129                 }
130                 part {
131                         name, "guide";
132                         type, RECT;
133                         description {
134                                 state, "default" 0.0;
135                                 rel1.relative, 0.0 1.0;
136                                 min, 0 20;
137                                 fixed, 0 1;
138                                 align, 0.5 0.0;
139                                 visible, 0;
140                         }
141                 }
142                 part {
143                         name, PART_TITLE;
144                         type, TEXT;
145                         description {
146                                 state, "default" 0.0;
147                                 rel1 {
148                                         to, "guide";
149                                         relative, 0.5 1.0;
150                                 }
151                                 rel2 {
152                                         to, "guide";
153                                         relative, 0.5 1.0;
154                                 }
155                                 min, 568 73;
156                                 fixed, 1 1;
157                                 align, 0.5 1.0;
158                                 text {
159                                         font, "TizenSans:style=Bold";
160                                         size, 27;
161                                         align, 0.0 0.5;
162                                         min, 0 0;
163                                 }
164                                 color, 211 211 211 255;
165                         }
166                 }
167         }
168 }
169
170 group {
171         name, GRP_DBAR_COMMON;
172         parts {
173                 part {
174                         name, "over";
175                         type, RECT;
176                         scale, 1;
177                         description {
178                                 state, "default" 0.0;
179                                 color, 0 0 0 0;
180                         }
181                 }
182                 part {
183                         name, "clip";
184                         type, RECT;
185                         scale, 1;
186                         description {
187                                 state, "default" 0.0;
188                                 min, 596 255;
189                                 color, 255 255 255 255;
190                         }
191                 }
192                 part {
193                         name, PART_THUMB;
194                         type, SWALLOW;
195                         scale, 1;
196                         clip_to, "clip";
197                         description {
198                                 state, "default" 0.0;
199                                 rel2 {
200                                         to, PART_TITLE;
201                                         relative, 1.0 0.0;
202                                 }
203                         }
204                 }
205                 part {
206                         name, "text.bg";
207                         type, RECT;
208                         scale, 1;
209                         clip_to, "clip";
210                         description {
211                                 state, "default" 0.0;
212                                 rel1.to, PART_TITLE;
213                                 rel2.to, PART_TITLE;
214                                 color, 40 40 40 191;
215                         }
216                 }
217                 part {
218                         name, "clip.bg";
219                         type, RECT;
220                         scale, 1;
221                         description {
222                                 state, "default" 0.0;
223                                 rel1 {
224                                         to, "text.bg";
225                                         relative, -1.0 0.0;
226                                 }
227                                 rel2 {
228                                         to, "text.bg";
229                                         relative, 0.0 1.0;
230                                 }
231                         }
232                         description {
233                                 state, "focus" 0.0;
234                                 inherit, "default" 0.0;
235                                 rel1.relative, 0.0 0.0;
236                                 rel2.relative, 1.0 1.0;
237                         }
238                         description {
239                                 state, "prev" 0.0;
240                                 inherit, "default" 0.0;
241                                 rel1.relative, 0.0 -1.0;
242                                 rel2.relative, 1.0 0.0;
243                         }
244                         description {
245                                 state, "next" 0.0;
246                                 inherit, "default" 0.0;
247                                 rel1.relative, 0.0 1.0;
248                                 rel2.relative, 1.0 2.0;
249                         }
250                 }
251                 part {
252                         name, PART_BG;
253                         type, SWALLOW;
254                         scale, 1;
255                         clip_to, "clip.bg";
256                         description {
257                                 state, "default" 0.0;
258                                 rel1.to, "text.bg";
259                                 rel2.to, "text.bg";
260                         }
261                 }
262                 part {
263                         name, PART_TITLE;
264                         type, TEXT;
265                         clip_to, "clip";
266                         description {
267                                 state, "default" 0.0;
268                                 rel1.relative, 0.0 1.0;
269                                 min, 0 63;
270                                 fixed, 0 1;
271                                 align, 0.5 1.0;
272                                 text {
273                                         font, "TizenSans:style=Bold";
274                                         size, 20;
275                                         min, 0 0;
276                                         align, 0.041 0.5;
277                                 }
278                         }
279                 }
280         }
281         programs {
282                 program {
283                         name, "initial_focus_pre";
284                         signal, SIG_INITIAL_FOCUS;
285                         source, SRC_PROG;
286                         action, STATE_SET "default" 0.0;
287                         target, "clip.bg";
288                         after, "focus";
289                 }
290                 program {
291                         name, "focus";
292                         signal, SIG_FOCUS;
293                         source, SRC_PROG;
294                         action, STATE_SET "focus" 0.0;
295                         transition, LINEAR 0.15;
296                         target, "clip.bg";
297                 }
298                 program {
299                         name, "focus_from_next";
300                         signal, SIG_FOCUS_FROM_DOWN;
301                         source, SRC_PROG;
302                         action, STATE_SET "next" 0.0;
303                         target, "clip.bg";
304                         after, "focus";
305                 }
306                 program {
307                         name, "focus_from_prev";
308                         signal, SIG_FOCUS_FROM_UP;
309                         source, SRC_PROG;
310                         action, STATE_SET "prev" 0.0;
311                         target, "clip.bg";
312                         after, "focus";
313                 }
314                 program {
315                         name, "unfocus_to_next";
316                         signal, SIG_UNFOCUS_TO_DOWN;
317                         source, SRC_PROG;
318                         action, STATE_SET "next" 0.0;
319                         transition, LINEAR 0.15;
320                         target, "clip.bg";
321                 }
322                 program {
323                         name, "unfocus_to_prev";
324                         signal, SIG_UNFOCUS_TO_UP;
325                         source, SRC_PROG;
326                         action, STATE_SET "prev" 0.0;
327                         transition, LINEAR 0.15;
328                         target, "clip.bg";
329                 }
330                 program {
331                         name, "unfocus";
332                         signal, SIG_UNFOCUS_TO_HBAR;
333                         source, SRC_PROG;
334                         action, STATE_SET "default" 0.0;
335                         transition, LINEAR 0.15;
336                         target, "clip.bg";
337                 }
338                 program {
339                         name, "hide";
340                         signal, SIG_HIDE;
341                         source, SRC_PROG;
342                         action, STATE_SET "default" 0.0;
343                         target, "clip.bg";
344                 }
345         }
346 }