1 group { name: "e/modules/notification/logo";
2 images.image: "glow_exclam.png" COMP;
4 part { name: "base"; mouse_events: 0;
5 description { state: "default" 0.0;
6 image.normal: "glow_exclam.png";
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";
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";
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
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";
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
49 description { state: "default" 0.0;
50 image.normal: "darken_rounded_square.png";
51 image.border: 15 15 15 15;
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;
60 part { name: "bodyclip"; type: RECT;
61 description { state: "default" 0.0;
66 part { name: "notification.swallow.app_icon"; type: SWALLOW; mouse_events: 0;
67 description { state: "default" 0.0;
70 aspect_preference: BOTH;
73 rel2.relative: 0.0 1.0;
77 part { name: "notification.textblock.message"; type: TEXTBLOCK; mouse_events: 0;
79 description { state: "default" 0.0;
81 rel1.to_x: "notification.swallow.app_icon";
82 rel1.to_y: "notification.text.title";
83 rel1.relative: 1.0 1.0;
86 text { style: "notification_style";
92 part { name: "message"; type: TEXTBLOCK; mouse_events: 0;
93 description { state: "default" 0.0;
96 rel1.to_x: "notification.swallow.app_icon";
97 rel1.to_y: "notification.text.title";
98 rel1.relative: 1.0 1.0;
100 rel2.offset: -27 -11;
101 text { style: "notification_style_nowrap";
102 text_source: "notification.textblock.message";
108 part { name: "notification.text.title"; type: TEXT; mouse_events: 0;
109 clip_to: "titleclip";
110 effect: SHADOW BOTTOM;
112 description { state: "default" 0.0;
113 rel1.to_x: "notification.swallow.app_icon";
114 rel1.relative: 1.0 0.0;
116 rel2.relative: 0.0 0.0;
117 rel2.to_x: "e.event.close";
119 color: FN_COL_DEFAULT;
121 color_class: "notification_title";
122 text { font: FNBD; size: 10;
123 text: "title goes here blah blah";
126 text_class: "notification_title";
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";
140 description { state: "selected" 0.0;
141 inherit: "default" 0.0;
142 image.normal: "sym_close_light_selected.png";
145 part { name: "e.event.close"; type: RECT;
147 description { state: "default" 0.0;
148 rel1.relative: 1.0 0.0;
150 rel2.relative: 1.0 0.0;
161 signal: "mouse,down,1"; source: "e.event.close";
162 action: STATE_SET "selected" 0.0;
166 signal: "mouse,up,1"; source: "e.event.close";
167 action: STATE_SET "default" 0.0;
171 signal: "mouse,clicked,1"; source: "e.event.close";
172 action: SIGNAL_EMIT "notification,close" "theme";
175 signal: "mouse,clicked,1"; source: "base";
176 action: SIGNAL_EMIT "notification,find" "theme";
179 // signal: "notification,new"; source: "notification";
182 // signal: "notification,del"; source: "notification";
185 // signal: "notification,deleted"; source: "notification";