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