Tizen 2.1 base
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / tickernoti.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19
20    group {
21       name: "elm/tickernoti/base/1line/default";
22       alias: "elm/tickernoti/base/info";
23       data {
24          item: "height" TICKERNOTI_INFO_BG_MIN_HEIGHT_INC;
25       }
26       images {
27          image: "00_winset_notification_bg1.png" COMP;
28       }
29       parts {
30          part { name: "base";
31             type: RECT;
32             scale: 1;
33             description { state: "default" 0.0;
34                align: 0.5 0.0;
35                min: 0 TICKERNOTI_INFO_BG_MIN_HEIGHT_INC;
36             }
37          }
38          part {
39             name: "bg";
40             mouse_events: 0;
41             type: IMAGE;
42             scale: 1;
43             description { state: "default" 0.0;
44                visible: 1;
45                rel1 {
46                   relative: 0.0 0.0;
47                   to: "base";
48                }
49                rel2 {
50                   relative: 1.0 1.0;
51                   to: "base";
52                }
53                image {
54                   normal: "00_winset_notification_bg1.png";
55                }
56             }
57          }
58          part {
59             name: "padding_left_top";
60             type: RECT;
61             scale: 1;
62             mouse_events: 0;
63             description {
64                state: "default" 0.0;
65                visible: 0;
66                min: TICKERNOTI_INFO_BG_PADDING_LEFT_TOP_INC;
67                fixed: 1 1;
68                align: 0.0 0.0;
69                rel1 {
70                   relative: 0.0 0.0;
71                   to: "bg";
72                }
73                rel2 {
74                   relative: 0.0 0.0;
75                   to: "bg";
76                }
77             }
78          }
79          part {
80             name: "padding_right_bottom";
81             type: RECT;
82             scale: 1;
83             mouse_events: 0;
84             description {
85                state: "default" 0.0;
86                visible: 0;
87                min: TICKERNOTI_INFO_BG_PADDING_RIGHT_BOTTOM_INC;
88                fixed: 1 1;
89                align: 1.0 1.0;
90                rel1 {
91                   relative: 1.0 1.0;
92                   to: "bg";
93                }
94                rel2 {
95                   relative: 1.0 1.0;
96                   to: "bg";
97                }
98             }
99          }
100          part {
101             name: "icon";
102             type: SWALLOW;
103             scale: 1;
104             mouse_events: 1;
105             description {
106                state: "default" 0.0;
107                fixed: 1 0;
108                align: 0.0 0.0;
109                rel1 {
110                   relative: 1.0 1.0;
111                   to: "padding_left_top";
112                }
113                rel2 {
114                   relative: 1.0 0.0;
115                   to_x: "padding_left_top";
116                   to_y: "padding_right_bottom";
117                }
118                aspect: 1.0 1.0;
119                aspect_preference: VERTICAL;
120             }
121          }
122          part {
123             name: "padding_icon_right";
124             type: RECT;
125             scale: 1;
126             mouse_events: 0;
127             description {
128                state: "default" 0.0;
129                visible: 0;
130                min: TICKERNOTI_BG_PADDING_AFTER_ICON_INC;
131                fixed: 1 0;
132                align: 0.0 0.0;
133                rel1 {
134                   relative: 1.0 1.0;
135                   to_x: "icon";
136                   to_y: "padding_left_top";
137                }
138                rel2 {
139                   relative: 1.0 0.0;
140                   to_x: "icon";
141                   to_y: "padding_right_bottom";
142                }
143             }
144          }
145          part {
146             name: "elm.text";
147             type: TEXT;
148             scale: 1;
149             mouse_events: 0;
150             description {
151                state: "default" 0.0;
152                rel1 {
153                   relative: 1.0 0.0;
154                   to: "padding_icon_right";
155                }
156                rel2 {
157                   relative: 1.0 1.0;
158                   to: "bg";
159                }
160                color: SELECTION_INFO_TEXT_COLOR_INC;
161                text {
162                   font: "Tizen:style=Roman";
163                   size: TICKERNOTI_INFO_TEXT_FONT_SIZE_INC;
164                   align: 0.0 0.5;
165                   text_class: "tizen";
166                }
167             }
168          }
169          part {
170             name: "event";
171             mouse_events: 1;
172             repeat_events: 1;
173             description {state: "default" 0.0;
174                color: 0 0 0 0;
175                rel1 {
176                   to: "bg";
177                }
178                rel2 {
179                   to: "bg";
180                }
181             }
182          }
183       }
184       programs {
185          program {
186             name: "effect_show";
187             signal: "effect,show";
188             source: "elm";
189             action: STATE_SET "show" "0.0";
190             in: 0.1 0.0;
191             transition: ACCEL 0.4;
192             target: "bg";
193          }
194          program {
195             name: "other_click";
196             signal: "mouse,clicked,1";
197             source: "bg";
198             action: SIGNAL_EMIT "clicked" "";
199             after: "effect_hide";
200          }
201          program {
202             name: "effect_hide";
203             action: STATE_SET "default" "0.0";
204             transition: DECEL 0.4;
205             target: "bg";
206             after: "hide";
207          }
208          program {
209             name: "hide";
210             action: SIGNAL_EMIT "request,hide" "";
211          }
212       }
213    }
214    group {
215       name: "elm/tickernoti/base/default";
216       data {
217          item: "height" TICKERNOTI_DEFAULT_BG_MIN_HEIGHT_INC;
218       }
219       images {
220          image: "00_notification_bg.png" COMP;
221       }
222       styles {
223          style {
224             name: "style_text";
225             base: "font=Tizen:style=Bold font_size="TICKERNOTI_DEFAULT_TEXT_FONT_SIZE_INC" color="TICKER_NOTI_DEFAULT_TEXT_COLOR_INC" wrap=mixed ellipsis=1.0 text_class=tizen";
226             tag: "br" "\n";
227             tag: "ps" "ps";
228             tag: "b" "+ font=Tizen:style=Bold";
229             tag: "notitext1" "+font_size="TICKERNOTI_DEFAULT_TEXT_FONT_SIZE_INC" color="TICKER_NOTI_DEFAULT_TEXT_COLOR_INC"";
230             tag: "notitext2" "+font_size="TICKERNOTI_DEFAULT_TEXT2_FONT_SIZE_INC" color="TICKER_NOTI_DEFAULT_TEXT2_COLOR_INC"";
231          }
232       }
233       parts {
234          part {
235             name: "bg";
236             mouse_events: 0;
237             scale: 1;
238             description { state: "default" 0.0;
239                min: 0 TICKERNOTI_DEFAULT_BG_TOTAL_MIN_HEIGHT_INC;
240                image {
241                   normal: "00_notification_bg.png";
242                   border: TICKERNOTI_DEFAULT_BG_BORDER_INC;
243                   border_scale: 1;
244                }
245             }
246          }
247          part {
248             name: "base";
249             type: RECT;
250             scale: 1;
251             description { state: "default" 0.0;
252                align: 0.5 0.0;
253                min: 0 TICKERNOTI_DEFAULT_BG_MIN_HEIGHT_INC;
254                fixed: 0 1;
255                rel1 {
256                   relative: 0.0 0.0;
257                }
258                rel2 {
259                   relative: 1.0 0.0;
260                }
261                visible: 0;
262             }
263          }
264          part {
265             name: "padding_left_top";
266             type: RECT;
267             scale: 1;
268             mouse_events: 0;
269             description {
270                state: "default" 0.0;
271                visible: 0;
272                min: TICKERNOTI_DEFAULT_BG_PADDING_LEFT_TOP_INC;
273                fixed: 1 1;
274                align: 0.0 0.0;
275                rel1 {
276                   relative: 0.0 0.0;
277                   to: "base";
278                }
279                rel2 {
280                   relative: 0.0 0.0;
281                   to: "base";
282                }
283             }
284          }
285          part {
286             name: "padding_right_bottom";
287             type: RECT;
288             scale: 1;
289             mouse_events: 0;
290             description {
291                state: "default" 0.0;
292                visible: 0;
293                min: TICKERNOTI_DEFAULT_BG_PADDING_RIGHT_BOTTOM_INC;
294                fixed: 1 1;
295                align: 1.0 1.0;
296                rel1 {
297                   relative: 1.0 1.0;
298                   to: "base";
299                }
300                rel2 {
301                   relative: 1.0 1.0;
302                   to: "base";
303                }
304             }
305          }
306          // Icon
307          part {
308             name: "icon";
309             type: SWALLOW;
310             scale: 1;
311             mouse_events: 1;
312             description {
313                state: "default" 0.0;
314                fixed: 1 1;
315                min: TICKERNOTI_DEFAULT_ICON_MIN_INC;
316                max: TICKERNOTI_DEFAULT_ICON_MIN_INC;
317                align: 0.0 0.5;
318                rel1 {
319                   relative: 1.0 0.0;
320                   to_x: "padding_left_top";
321                   to_y: "base";
322                }
323                rel2 {
324                   relative: 1.0 1.0;
325                   to_x: "padding_left_top";
326                   to_y: "base";
327                }
328                aspect: 1.0 1.0;
329                aspect_preference: VERTICAL;
330             }
331          }
332          part {
333             name: "padding_icon_right";
334             type: RECT;
335             scale: 1;
336             mouse_events: 0;
337             description {
338                state: "default" 0.0;
339                visible: 0;
340                min: TICKERNOTI_DEFAULT_PADDING_AFTER_ICON_INC;
341                fixed: 1 0;
342                align: 0.0 0.5;
343                rel1 {
344                   relative: 1.0 0.0;
345                   to_x: "icon";
346                   to_y: "base";
347                }
348                rel2 {
349                   to_x: "icon";
350                   to_y: "base";
351                }
352             }
353          }
354          /* Text */
355          part {
356             name: "text_rect";
357             type: RECT;
358             scale: 1;
359             mouse_events: 0;
360             description {
361                state: "default" 0.0;
362                visible: 0;
363                min: TICKERNOTI_DEFAULT_TEXT_MIN_INC;
364                align: 0.0 0.5;
365                rel1 {
366                   relative: 1.0 0.0;
367                   to_x: "padding_icon_right";
368                   to_y: "base";
369                }
370                rel2 {
371                   relative: 0.0 1.0;
372                   to_x: "padding_button_left";
373                   to_y: "base";
374                }
375             }
376          }
377          part {
378             name: "elm.text";
379             type: TEXTBLOCK;
380             scale: 1;
381             mouse_events: 0;
382             description {
383                state: "default" 0.0;
384                fixed: 0 1;
385                rel1.to: "text_rect";
386                rel2.to: "text_rect";
387                text {
388                   style: "style_text";
389                   max: 0 1;
390                   align: 0.0 0.5;
391                }
392             }
393          }
394          part {
395             name: "event";
396             mouse_events: 1;
397             repeat_events: 1;
398             description {
399                state: "default" 0.0;
400                color: 0 0 0 0;
401                rel1 {
402                   to: "bg";
403                }
404                rel2 {
405                   to: "bg";
406                }
407             }
408          }
409          // Button
410          part {
411             name: "button";
412             type: SWALLOW;
413             scale: 1;
414             mouse_events: 1;
415             description { state: "default" 0.0;
416                min: TICKERNOTI_DEFAULT_BUTTON_MIN_INC;
417                max: TICKERNOTI_DEFAULT_BUTTON_MAX_INC;
418                fixed: 1 1;
419                align: 1.0 0.5;
420                rel1 {
421                   relative: 0.0 0.0;
422                   to_x: "padding_right_bottom";
423                   to_y: "base";
424                }
425                rel2 {
426                   relative: 0.0 1.0;
427                   to_x: "padding_right_bottom";
428                   to_y: "base";
429                }
430             }
431          }
432          part {
433             name: "padding_button_left";
434             type: RECT;
435             scale: 1;
436             mouse_events: 0;
437             description {
438                state: "default" 0.0;
439                visible: 0;
440                min: TICKERNOTI_DEFAULT_PADDING_BEFORE_BUTTON_INC;
441                fixed: 1 0;
442                align: 0.0 0.0;
443                rel1 {
444                   relative: 0.0 0.0;
445                   to: "button";
446                }
447                rel2 {
448                   relative: 0.0 1.0;
449                   to: "button";
450                }
451             }
452          }
453       }
454       programs {
455          program {
456             name: "effect_show";
457             signal: "effect,show";
458             source: "elm";
459             in: 0.1 0.0;
460             action: STATE_SET "show" "0.0";
461             transition: ACCEL 0.4;
462             target: "bg";
463          }
464          program {
465             name: "clicked";
466             signal: "mouse,clicked,1";
467             source: "event";
468             action: SIGNAL_EMIT "clicked" "";
469             after: "effect_hide";
470          }
471          program {
472             name: "effect_hide";
473             signal: "effect,hide";
474             source: "elm";
475             action: STATE_SET "default" "0.0";
476             transition: DECEL 0.4;
477             target: "bg";
478             after: "hide";
479          }
480          program {
481             name: "hide";
482             action: SIGNAL_EMIT "request,hide" "";
483          }
484       }
485    }
486
487    group { name: "elm/tickernoti/base/textonly";
488       data {
489          item: "height" TICKERNOTI_DEFAULT_BG_MIN_HEIGHT_INC;
490       }
491       images {
492          image: "00_notification_bg.png" COMP;
493       }
494       styles {
495          style {
496             name: "style_textonly";
497             base: "font=Tizen:style=Bold font_size="TICKERNOTI_DEFAULT_TEXT2_FONT_SIZE_INC" color="TICKER_NOTI_DEFAULT_TEXT_COLOR_INC" wrap=mixed ellipsis=1.0 linesize=32 text_class=tizen";
498             tag: "br" "\n";
499             tag: "ps" "ps";
500             tag: "b" "+ font=Tizen:style=Bold";
501             tag: "notitext" "+font_size="TICKERNOTI_DEFAULT_TEXT2_FONT_SIZE_INC" color="TICKER_NOTI_DEFAULT_TEXT_COLOR_INC"";
502          }
503       }
504       parts {
505          part {
506             name: "bg";
507             mouse_events: 0;
508             scale: 1;
509             description { state: "default" 0.0;
510                min: 0 TICKERNOTI_DEFAULT_BG_TOTAL_MIN_HEIGHT_INC;
511                image {
512                   normal: "00_notification_bg.png";
513                   border: TICKERNOTI_DEFAULT_BG_BORDER_INC;
514                   border_scale: 1;
515                }
516             }
517          }
518          part {
519             name: "base";
520             type: RECT;
521             scale: 1;
522             description { state: "default" 0.0;
523                align: 0.5 0.0;
524                min: 0 TICKERNOTI_DEFAULT_BG_MIN_HEIGHT_INC;
525                fixed: 0 1;
526                rel2.relative: 1.0 0.0;
527                visible: 0;
528             }
529          }
530          part {
531             name: "padding_left_top";
532             type: RECT;
533             scale: 1;
534             mouse_events: 0;
535             description {
536                state: "default" 0.0;
537                visible: 0;
538                min: TICKERNOTI_DEFAULT_BG_PADDING_LEFT_TOP_INC;
539                fixed: 1 1;
540                align: 0.0 0.0;
541                rel1.to: "base";
542                rel2 {
543                   relative: 0.0 0.0;
544                   to: "base";
545                }
546             }
547          }
548          part {
549             name: "padding_right_bottom";
550             type: RECT;
551             scale: 1;
552             mouse_events: 0;
553             description {
554                state: "default" 0.0;
555                visible: 0;
556                min: TICKERNOTI_DEFAULT_BG_PADDING_RIGHT_BOTTOM_INC;
557                fixed: 1 1;
558                align: 1.0 1.0;
559                rel1 {
560                   relative: 1.0 1.0;
561                   to: "base";
562                }
563                rel2.to: "base";
564             }
565          }
566          part {
567             name: "elm.text";
568             type: TEXTBLOCK;
569             scale: 1;
570             mouse_events: 0;
571             description {
572                state: "default" 0.0;
573                min: TICKERNOTI_TEXT_ONLY_TEXT_MIN_INC;
574                fixed: 1 1;
575                rel1 {
576                   relative: 1.0 1.0;
577                   to: "padding_left_top";
578                }
579                rel2 {
580                   relative: 0.0 0.0;
581                   to: "padding_right_bottom";
582                }
583                text {
584                   style: "style_textonly";
585                }
586             }
587          }
588       }
589    }