User relative path to imports in edc files.
[apps/core/preloaded/indicator-win.git] / res / resource / ticker.edc
1 /*
2  * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #include "color_classes.edc"
19 #include "../../inc/indicator_gui.h"
20
21 #define TICKERNOTI_MAIN_TEXT_HEIGHT_INC 1
22  
23 collections
24 {
25         base_scale: 1.7;
26
27         group {
28                 name: "quickpanel/tickernoti/text";
29                 data {
30                         item: "height" TICKERNOTI_DEFAULT_BG_MIN_HEIGHT_INC;
31                 }
32                 styles {
33                         style {
34                                 name: "style_main_text";
35                                 base: "font=Tizen:style=Regular font_size=25 color=#FFFFFF  text_class=tizen wrap=mixed";
36                                 tag: "br" "\n";
37                                 tag: "ps" "ps";
38                                 tag: "b" "+ font_weight=Bold";
39                         }
40                 }
41                 parts {
42                         part {
43                                 name: "elm.text";
44                                 type: TEXTBLOCK;
45                                 scale: 1;
46                                 multiline: 1;
47                                 mouse_events: 0;
48                                 description {
49                                         state: "default" 0.0;
50                                         min: 434 0;
51                                         align: 0.5 0.0;
52                                         text {
53                                                 style: "style_main_text";
54                                                 min: 0 1;
55                                                 align: 0.0 0.0;
56                                         }
57                                 }
58                         }
59                 }
60         }
61
62         group {
63                 name: "quickpanel/tickernoti/normal";
64                 data {
65                         item: "height" TICKERNOTI_DEFAULT_BG_MIN_HEIGHT_INC;
66                 }
67                 parts {
68                         part {
69                                 name: "base";
70                                 type: SWALLOW;
71                                 scale: 1;
72                                 description {
73                                         state: "default" 0.0;
74                                         align: 0.0 0.0;
75                                 }
76
77                         }
78                         part {
79                                 name: "clipper";
80                                 type: RECT;
81                                 scale: 1;
82                                 description {
83                                         state: "default" 0.0;
84                                         rel1.to: "base";
85                                         rel2.to: "base";
86                                         align: 0.0 0.0;
87                                 }
88                         }
89                         part {
90                                 name: "bg";
91                                 mouse_events: 1;
92                                 type: RECT;
93                                 clip_to: "clipper";
94                                 scale: 1;
95                                 description { state: "default" 0.0;
96                                         visible: 0;
97                                         rel1.to: "base";
98                                         rel2.to: "base";
99                                 }
100                         }
101
102                         part {
103                                 name: "bg_img";
104                                 mouse_events: 0;
105                                 type: RECT;
106                                 scale: 1;
107                                 description { state: "default" 0.0;
108                                         visible: 1;
109                                         align:0.0 0.0;
110
111                                         rel1.to: "bg";
112                                         rel2.to: "bg";
113                                         /* FIXME */
114                                         color: 0 0 0 255;
115                                         //color_class: "AO008_STATUS";
116                                 }
117                         }
118                         // Icon
119                         part {
120                                 name: "icon";
121                                 type: SWALLOW;
122                                 scale: 1;
123                                 mouse_events: 1;
124                                 clip_to: "clipper";
125                                 description {
126                                         state: "default" 0.0;
127                                         fixed: 1 1;
128                                         min: 25 25;
129                                         max: 25 25;
130                                         align: 0.0 0.5;
131                                         rel1
132                                         {
133                                                 relative: 0.0 0.5;
134                                                 to: "base";
135                                                 offset: 6 0;
136                                         }
137                                         rel2 {
138                                                 relative: 0.0 0.5;
139                                                 to: "base";
140                                         }
141                                         aspect: 1.0 1.0;
142                                         aspect_preference: VERTICAL;
143                                 }
144                         }
145                         /* Text */
146                         part {
147                                 name: "text_rect";
148                                 type: SWALLOW;
149                                 scale: 1;
150                                 description {
151                                         state: "default" 0.0;
152                                         max: 800 36;
153                                         fixed: 1 1;
154                                         align: 0.0 0.5;
155                                         rel1 {
156                                                 relative: 1.0 0.0;
157                                                 to_x: "icon";
158                                                 to_y: "base";
159                                                 offset: 10 3;
160                                         }
161                                         rel2 {
162                                                 relative: 1.0 0.9;
163                                                 to: "base";
164                                         }
165                                 }
166                         }
167                         part {
168                                 name: "event";
169                                 type: RECT;
170                                 mouse_events: 1;
171                                 repeat_events: 1;
172                         description {
173                                         state: "default" 0.0;
174                                         color: 0 0 0 0;
175                                         rel1 {
176                                                 to: "bg";
177                                         }
178                                         rel2 {
179                                                 to: "bg";
180                                         }
181                                 }
182                         }
183                 }
184                 programs {
185                         program {
186                                 name: "effect_show";
187                                 signal: "effect,show";
188                                 source: "elm";
189                                 in: 0.1 0.0;
190                                 action: STATE_SET "show" "0.0";
191                                 transition: ACCEL 0.4;
192                                 target: "bg";
193                         }
194                         program {
195                                 name: "clicked";
196                                 signal: "mouse,clicked,1";
197                                 source: "event";
198                                 action: SIGNAL_EMIT "clicked" "";
199                                 after: "effect_hide";
200                         }
201                         program {
202                                 name: "effect_hide";
203                                 signal: "effect,hide";
204                                 source: "elm";
205                                 action: STATE_SET "default" "0.0";
206                                 transition: DECEL 0.4;
207                                 target: "bg";
208                                 after: "hide";
209                         }
210                         program {
211                                 name: "hide";
212                                 action: SIGNAL_EMIT "request,hide" "";
213                         }
214                 }
215         }
216 }