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