tizen 2.4 release
[framework/uifw/elementary.git] / data / themes / edc / notification.edc
1 group { name: "e/modules/notification/logo";
2    images.image: "glow_exclam.png" COMP;
3    parts {
4       part { name: "base"; mouse_events: 0;
5          description { state: "default" 0.0;
6             image.normal: "glow_exclam.png";
7             max: 48 48;
8             aspect: 1.0 1.0;
9          }
10       }
11    }
12 }
13
14 group { name: "e/modules/notification/main";
15    images.image: "darken_rounded_square.png" COMP;
16    images.image: "sym_close_light_normal.png" COMP;
17    images.image: "sym_close_light_selected.png" COMP;
18    data.item: "app_icon_max" "48 48";
19    data.item: "shaped" "1";
20    styles {   
21       style { name: "notification_style_nowrap";
22          base: "font="FN" font_size=10 align=left color=#ffff style=shadow,bottom shadow_color=#00000080 wrap=none text_class=notification_body";
23          tag:  "subject"  "+ text_class=module_large style=glow color=#3399ffff glow_color=#3399ff18 align=center glow2_color=#3399ff12";
24          tag:  "body"  "+ text_class=module_normal";
25          tag:  "br" "\n";
26          tag:  "ps" "ps";
27          tag:  "b" "+ font="FNBD" text_class=module_bold";
28          tag:  "i" "+ font="FNIT" text_class=module_italic";
29          tag:  "u" "+ underline=on underline_color=#3399ffff";
30          tag:  "img" ""; // images not supported
31          tag:  "a" ""; // links not supported
32       }
33       style { name: "notification_style";
34          base: "font="FN" font_size=10 align=left color=#ffff style=shadow,bottom shadow_color=#00000080 wrap=word text_class=notification_body";
35          tag:  "subject"  "+ text_class=module_large style=glow color=#3399ffff glow_color=#3399ff18 align=center glow2_color=#3399ff12";
36          tag:  "body"  "+ text_class=module_normal";
37          tag:  "br" "\n";
38          tag:  "ps" "ps";
39          tag:  "b" "+ font="FNBD" text_class=module_bold";
40          tag:  "i" "+ font="FNIT" text_class=module_italic";
41          tag:  "u" "+ underline=on underline_color=#3399ffff";
42          tag:  "img" ""; // images not supported
43          tag:  "a" ""; // links not supported
44       }
45    }
46    
47    parts {
48       part { name: "base";
49          description { state: "default" 0.0;
50             image.normal: "darken_rounded_square.png";
51             image.border: 15 15 15 15;
52          }
53       }
54       part { name: "titleclip"; type: RECT;
55          description { state: "default" 0.0;
56             rel2.to_x: "e.event.close";
57             rel2.relative: 0.0 1.0;
58          }
59       }
60       part { name: "bodyclip"; type: RECT;
61          description { state: "default" 0.0;
62             rel2.offset: -13 -13;
63             min: 220 80;
64          }
65       }
66       part { name: "notification.swallow.app_icon"; type: SWALLOW; mouse_events: 0;
67          description { state: "default" 0.0;
68             align: 0.0 0.5;
69             aspect: 1.0 1.0;
70             aspect_preference: BOTH;
71             rel1.offset: 12 12;
72             rel2.offset: 12 -13;
73             rel2.relative: 0.0 1.0;
74             min: 24 24;
75          }
76       }
77       part { name: "notification.textblock.message"; type: TEXTBLOCK; mouse_events: 0;
78          clip_to: "bodyclip";
79          description { state: "default" 0.0;
80             align: 0.0 0.0;
81             rel1.to_x: "notification.swallow.app_icon";
82             rel1.to_y: "notification.text.title";
83             rel1.relative: 1.0 1.0;
84             rel1.offset: 4 4;
85             rel2.offset: -27 -11;
86             text { style: "notification_style";
87                min: 0 1;
88             }
89             fixed: 1 1;
90          }
91       }
92       part { name: "message"; type: TEXTBLOCK; mouse_events: 0;
93          description { state: "default" 0.0;
94             align: 0.0 0.0;
95             max: 500 99999;
96             rel1.to_x: "notification.swallow.app_icon";
97             rel1.to_y: "notification.text.title";
98             rel1.relative: 1.0 1.0;
99             rel1.offset: 4 4;
100             rel2.offset: -27 -11;
101             text { style: "notification_style_nowrap";
102                text_source: "notification.textblock.message";
103                min: 0 1;
104             }
105             visible: 0;
106          }
107       }
108       part { name: "notification.text.title"; type: TEXT; mouse_events: 0;
109          clip_to: "titleclip";
110          effect: SHADOW BOTTOM;
111          scale: 1;
112          description { state: "default" 0.0;
113             rel1.to_x: "notification.swallow.app_icon";
114             rel1.relative: 1.0 0.0;
115             rel1.offset: 4 12;
116             rel2.relative: 0.0 0.0;
117             rel2.to_x: "e.event.close";
118             rel2.offset: -5 12;
119             color: FN_COL_DEFAULT;
120             align: 0.0 0.0;
121             color_class: "notification_title";
122             text { font: FNBD; size: 10;
123                text: "title goes here blah blah";
124                min: 0 1;
125                align: 0.0 0.5;
126                text_class: "notification_title";
127             }
128             fixed: 0 1;
129          }
130       }
131       part { name: "close";
132          description { state: "default" 0.0;
133             image.normal: "sym_close_light_normal.png";
134             rel1.to: "e.event.close";
135             rel2.to: "e.event.close";
136             min: 15 15;
137             max: 15 15;
138             fixed: 1 1;
139          }
140          description { state: "selected" 0.0;
141             inherit: "default" 0.0;
142             image.normal: "sym_close_light_selected.png";
143          }
144       }
145       part { name: "e.event.close"; type: RECT;
146          scale: 1;
147          description { state: "default" 0.0;
148             rel1.relative: 1.0 0.0;
149             rel1.offset: -13 12;
150             rel2.relative: 1.0 0.0;
151             rel2.offset: -13 12;
152             align: 1.0 0.0;
153             min: 15 15;
154             color: 0 0 0 0;
155             fixed: 1 1;
156          }
157       }
158    }
159    programs {
160       program {
161          signal: "mouse,down,1"; source: "e.event.close";
162          action: STATE_SET "selected" 0.0;
163          target: "close";
164       }
165       program {
166          signal: "mouse,up,1"; source: "e.event.close";
167          action: STATE_SET "default" 0.0;
168          target: "close";
169       }
170       program {
171          signal: "mouse,clicked,1"; source: "e.event.close";
172          action: SIGNAL_EMIT "notification,close" "theme";
173       }
174       program {
175          signal: "mouse,clicked,1"; source: "base";
176          action: SIGNAL_EMIT "notification,find" "theme";
177       }
178 //      program {
179 //         signal: "notification,new"; source: "notification";
180 //      }
181 //      program {
182 //         signal: "notification,del"; source: "notification";
183 //      }
184 //      program {
185 //         signal: "notification,deleted"; source: "notification";
186 //      }
187    }
188 }