merge with master
[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             type: RECT;
172             mouse_events: 1;
173             repeat_events: 1;
174             description {state: "default" 0.0;
175                color: 0 0 0 0;
176                rel1 {
177                   to: "bg";
178                }
179                rel2 {
180                   to: "bg";
181                }
182             }
183          }
184       }
185       programs {
186          program {
187             name: "effect_show";
188             signal: "effect,show";
189             source: "elm";
190             action: STATE_SET "show" "0.0";
191             in: 0.1 0.0;
192             transition: ACCEL 0.4;
193             target: "bg";
194          }
195          program {
196             name: "other_click";
197             signal: "mouse,clicked,1";
198             source: "bg";
199             action: SIGNAL_EMIT "clicked" "";
200             after: "effect_hide";
201          }
202          program {
203             name: "effect_hide";
204             action: STATE_SET "default" "0.0";
205             transition: DECEL 0.4;
206             target: "bg";
207             after: "hide";
208          }
209          program {
210             name: "hide";
211             action: SIGNAL_EMIT "request,hide" "";
212          }
213       }
214    }
215    group {
216       name: "elm/tickernoti/base/default";
217       data {
218          item: "height" TICKERNOTI_DEFAULT_BG_MIN_HEIGHT_INC;
219       }
220       images {
221          image: "00_notification_bg.png" COMP;
222       }
223       styles {
224          style {
225             name: "style_text";
226             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";
227             tag: "br" "\n";
228             tag: "ps" "ps";
229             tag: "b" "+ font=Tizen:style=Bold";
230             tag: "notitext1" "+font_size="TICKERNOTI_DEFAULT_TEXT_FONT_SIZE_INC" color="TICKER_NOTI_DEFAULT_TEXT_COLOR_INC"";
231             tag: "notitext2" "+font_size="TICKERNOTI_DEFAULT_TEXT2_FONT_SIZE_INC" color="TICKER_NOTI_DEFAULT_TEXT2_COLOR_INC"";
232          }
233       }
234       parts {
235          part {
236             name: "bg";
237             mouse_events: 0;
238             scale: 1;
239             description { state: "default" 0.0;
240                min: 0 TICKERNOTI_DEFAULT_BG_TOTAL_MIN_HEIGHT_INC;
241                image {
242                   normal: "00_notification_bg.png";
243                   border: TICKERNOTI_DEFAULT_BG_BORDER_INC;
244                   border_scale: 1;
245                }
246             }
247          }
248          part {
249             name: "base";
250             type: RECT;
251             scale: 1;
252             description { state: "default" 0.0;
253                align: 0.5 0.0;
254                min: 0 TICKERNOTI_DEFAULT_BG_MIN_HEIGHT_INC;
255                fixed: 0 1;
256                rel1 {
257                   relative: 0.0 0.0;
258                }
259                rel2 {
260                   relative: 1.0 0.0;
261                }
262                visible: 0;
263             }
264          }
265          part {
266             name: "padding_left_top";
267             type: RECT;
268             scale: 1;
269             mouse_events: 0;
270             description {
271                state: "default" 0.0;
272                visible: 0;
273                min: TICKERNOTI_DEFAULT_BG_PADDING_LEFT_TOP_INC;
274                fixed: 1 1;
275                align: 0.0 0.0;
276                rel1 {
277                   relative: 0.0 0.0;
278                   to: "base";
279                }
280                rel2 {
281                   relative: 0.0 0.0;
282                   to: "base";
283                }
284             }
285          }
286          part {
287             name: "padding_right_bottom";
288             type: RECT;
289             scale: 1;
290             mouse_events: 0;
291             description {
292                state: "default" 0.0;
293                visible: 0;
294                min: TICKERNOTI_DEFAULT_BG_PADDING_RIGHT_BOTTOM_INC;
295                fixed: 1 1;
296                align: 1.0 1.0;
297                rel1 {
298                   relative: 1.0 1.0;
299                   to: "base";
300                }
301                rel2 {
302                   relative: 1.0 1.0;
303                   to: "base";
304                }
305             }
306          }
307          // Icon
308          part {
309             name: "icon";
310             type: SWALLOW;
311             scale: 1;
312             mouse_events: 1;
313             description {
314                state: "default" 0.0;
315                fixed: 1 1;
316                min: TICKERNOTI_DEFAULT_ICON_MIN_INC;
317                max: TICKERNOTI_DEFAULT_ICON_MIN_INC;
318                align: 0.0 0.5;
319                rel1 {
320                   relative: 1.0 0.0;
321                   to_x: "padding_left_top";
322                   to_y: "base";
323                }
324                rel2 {
325                   relative: 1.0 1.0;
326                   to_x: "padding_left_top";
327                   to_y: "base";
328                }
329                aspect: 1.0 1.0;
330                aspect_preference: VERTICAL;
331             }
332          }
333          part {
334             name: "padding_icon_right";
335             type: RECT;
336             scale: 1;
337             mouse_events: 0;
338             description {
339                state: "default" 0.0;
340                visible: 0;
341                min: TICKERNOTI_DEFAULT_PADDING_AFTER_ICON_INC;
342                fixed: 1 0;
343                align: 0.0 0.5;
344                rel1 {
345                   relative: 1.0 0.0;
346                   to_x: "icon";
347                   to_y: "base";
348                }
349                rel2 {
350                   to_x: "icon";
351                   to_y: "base";
352                }
353             }
354          }
355          /* Text */
356          part {
357             name: "text_rect";
358             type: RECT;
359             scale: 1;
360             mouse_events: 0;
361             description {
362                state: "default" 0.0;
363                visible: 0;
364                min: TICKERNOTI_DEFAULT_TEXT_MIN_INC;
365                align: 0.0 0.5;
366                rel1 {
367                   relative: 1.0 0.0;
368                   to_x: "padding_icon_right";
369                   to_y: "base";
370                }
371                rel2 {
372                   relative: 0.0 1.0;
373                   to_x: "padding_button_left";
374                   to_y: "base";
375                }
376             }
377          }
378          part {
379             name: "elm.text";
380             type: TEXTBLOCK;
381             scale: 1;
382             mouse_events: 0;
383             description {
384                state: "default" 0.0;
385                fixed: 0 1;
386                rel1.to: "text_rect";
387                rel2.to: "text_rect";
388                text {
389                   style: "style_text";
390                   max: 0 1;
391                   align: 0.0 0.5;
392                }
393             }
394          }
395          part {
396             name: "event";
397             type: RECT;
398             mouse_events: 1;
399             repeat_events: 1;
400             description {
401                state: "default" 0.0;
402                color: 0 0 0 0;
403                rel1 {
404                   to: "bg";
405                }
406                rel2 {
407                   to: "bg";
408                }
409             }
410          }
411          // Button
412          part {
413             name: "button";
414             type: SWALLOW;
415             scale: 1;
416             mouse_events: 1;
417             description { state: "default" 0.0;
418                min: TICKERNOTI_DEFAULT_BUTTON_MIN_INC;
419                max: TICKERNOTI_DEFAULT_BUTTON_MAX_INC;
420                fixed: 1 1;
421                align: 1.0 0.5;
422                rel1 {
423                   relative: 0.0 0.0;
424                   to_x: "padding_right_bottom";
425                   to_y: "base";
426                }
427                rel2 {
428                   relative: 0.0 1.0;
429                   to_x: "padding_right_bottom";
430                   to_y: "base";
431                }
432             }
433          }
434          part {
435             name: "padding_button_left";
436             type: RECT;
437             scale: 1;
438             mouse_events: 0;
439             description {
440                state: "default" 0.0;
441                visible: 0;
442                min: TICKERNOTI_DEFAULT_PADDING_BEFORE_BUTTON_INC;
443                fixed: 1 0;
444                align: 0.0 0.0;
445                rel1 {
446                   relative: 0.0 0.0;
447                   to: "button";
448                }
449                rel2 {
450                   relative: 0.0 1.0;
451                   to: "button";
452                }
453             }
454          }
455       }
456       programs {
457          program {
458             name: "effect_show";
459             signal: "effect,show";
460             source: "elm";
461             in: 0.1 0.0;
462             action: STATE_SET "show" "0.0";
463             transition: ACCEL 0.4;
464             target: "bg";
465          }
466          program {
467             name: "clicked";
468             signal: "mouse,clicked,1";
469             source: "event";
470             action: SIGNAL_EMIT "clicked" "";
471             after: "effect_hide";
472          }
473          program {
474             name: "effect_hide";
475             signal: "effect,hide";
476             source: "elm";
477             action: STATE_SET "default" "0.0";
478             transition: DECEL 0.4;
479             target: "bg";
480             after: "hide";
481          }
482          program {
483             name: "hide";
484             action: SIGNAL_EMIT "request,hide" "";
485          }
486       }
487    }
488
489    group { name: "elm/tickernoti/base/textonly";
490       data {
491          item: "height" TICKERNOTI_DEFAULT_BG_MIN_HEIGHT_INC;
492       }
493       images {
494          image: "00_notification_bg.png" COMP;
495       }
496       styles {
497          style {
498             name: "style_textonly";
499             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 text_class=tizen";
500             tag: "br" "\n";
501             tag: "ps" "ps";
502             tag: "b" "+ font=Tizen:style=Bold";
503             tag: "notitext" "+font_size="TICKERNOTI_DEFAULT_TEXT2_FONT_SIZE_INC" color="TICKER_NOTI_DEFAULT_TEXT_COLOR_INC"";
504          }
505       }
506       parts {
507          part {
508             name: "bg";
509             mouse_events: 0;
510             scale: 1;
511             description { state: "default" 0.0;
512                min: 0 TICKERNOTI_DEFAULT_BG_TOTAL_MIN_HEIGHT_INC;
513                image {
514                   normal: "00_notification_bg.png";
515                   border: TICKERNOTI_DEFAULT_BG_BORDER_INC;
516                   border_scale: 1;
517                }
518             }
519          }
520          part {
521             name: "base";
522             type: RECT;
523             scale: 1;
524             description { state: "default" 0.0;
525                align: 0.5 0.0;
526                min: 0 TICKERNOTI_DEFAULT_BG_MIN_HEIGHT_INC;
527                fixed: 0 1;
528                rel2.relative: 1.0 0.0;
529                visible: 0;
530             }
531          }
532          part {
533             name: "padding_left_top";
534             type: RECT;
535             scale: 1;
536             mouse_events: 0;
537             description {
538                state: "default" 0.0;
539                visible: 0;
540                min: TICKERNOTI_DEFAULT_BG_PADDING_LEFT_TOP_INC;
541                fixed: 1 1;
542                align: 0.0 0.0;
543                rel1.to: "base";
544                rel2 {
545                   relative: 0.0 0.0;
546                   to: "base";
547                }
548             }
549          }
550          part {
551             name: "padding_right_bottom";
552             type: RECT;
553             scale: 1;
554             mouse_events: 0;
555             description {
556                state: "default" 0.0;
557                visible: 0;
558                min: TICKERNOTI_DEFAULT_BG_PADDING_RIGHT_BOTTOM_INC;
559                fixed: 1 1;
560                align: 1.0 1.0;
561                rel1 {
562                   relative: 1.0 1.0;
563                   to: "base";
564                }
565                rel2.to: "base";
566             }
567          }
568          part {
569             name: "elm.text";
570             type: TEXTBLOCK;
571             scale: 1;
572             mouse_events: 0;
573             description {
574                state: "default" 0.0;
575                min: TICKERNOTI_TEXT_ONLY_TEXT_MIN_INC;
576                fixed: 1 1;
577                rel1 {
578                   relative: 1.0 1.0;
579                   to: "padding_left_top";
580                }
581                rel2 {
582                   relative: 0.0 0.0;
583                   to: "padding_right_bottom";
584                }
585                text {
586                   style: "style_textonly";
587                }
588             }
589          }
590       }
591    }