Fix warning of krate applications
[platform/core/security/krate.git] / tools / apps / kaskit / res / edje / app_icon.edc
1 #include "../../include/conf.h"
2
3 images {
4         image: "app_press_117.png" COMP;
5         image: "btn_delete_nor.png" COMP;
6         image: "btn_delete_press.png" COMP;
7         image: "icon_badge_container.png" COMP;
8         image: "folder_appicon_bg.png" COMP;
9         image: "sub_badge.png" COMP;
10 }
11
12 styles {
13         style{
14                 name: "icon_label";
15                 base: "font=Tizen:style=Regular align=center color=#FFFFFFFF style=shadow,bottom shadow_color=#000000FF font_size=26 ellipsis=1.0 wrap=mixed";
16         }
17         style{
18                 name: "icon_label_edit";
19                 base: "font=Tizen:style=Regular align=center color=#FFFFFFFF style=shadow,bottom shadow_color=#000000FF font_size=23 ellipsis=1.0 wrap=mixed";
20         }
21 }
22
23 group { name: "icon";
24         parts {
25                 part { name: "bg";
26                         type: RECT;
27                         mouse_events: 1;
28                         repeat_events: 1;
29                         description {
30                                 state: "default" 0.0;
31                                 align: 0 0;
32                                 rel1{relative: 0.0 0.0; offset: 0 0;}
33                                 rel2{relative: 0.0 0.0; offset: ICON_SIZE_W ICON_SIZE_H;}
34                                 visible: 0;
35                         }
36                 } //"bg"
37
38                 part { name: "icon_content";
39                         type: SWALLOW;
40                         description {
41                                 state: "default" 0.0;
42                                 rel1{relative: 0.16 0; to: "bg";}
43                                 rel2{relative: 0.84 0.6; to: "bg";}
44                                 align: 0.5 0.5;
45                         }
46                 } //"icon_content"
47
48                 part { name: "icon_touch";
49                         type: IMAGE;
50                         mouse_events: 1;
51                         repeat_events: 1;
52                         scale: 1;
53                         description {
54                                 state: "default" 0.0;
55                                 rel1{relative: 0.0 0.0; to: "icon_content";}
56                                 rel2{relative: 1.0 1.0; to: "icon_content";}
57                                 aspect: 1.0 1.0;
58                                 aspect_preference: BOTH;
59                                 color: 0 0 0 0;
60                                 image {
61                                         normal: "app_press_117.png";
62                                 }
63                         }
64                         description{
65                                 state: "icon_touched" 0.0;
66                                 inherit: "default" 0.0;
67                                 color: 0 0 0 250;
68                         }
69                 } //"icon_touch"
70
71                 part { name: "app_icon_disable";
72                         type: IMAGE;
73                         mouse_events: 1;
74                         repeat_events: 0;
75                         scale: 1;
76                         description {
77                                 state: "default" 0.0;
78                                 rel1{relative: 0.0 0.0; to: "icon_content";}
79                                 rel2{relative: 1.0 1.0; to: "icon_content";}
80                                 aspect: 1.0 1.0;
81                                 aspect_preference: BOTH;
82                                 color: 0 0 0 0;
83                                 image {
84                                         normal: "folder_appicon_bg.png";
85                                 }
86                                 visible: 0;
87                         }
88                         description{
89                             state: "disable" 0.0;
90                             inherit: "default" 0.0;
91                             color: 0 0 0 150;
92                             visible: 1;
93                         }
94                 } //"app_icon_disable"
95
96                 part { name: "icon_name";
97                         type: TEXTBLOCK;
98                         mouse_events: 1;
99                         repeat_events: 1;
100                         description {
101                                 state: "default" 0.0;
102                                 rel1{relative: 0.04 0.6; to: "bg";}
103                                 rel2{relative: 0.95 0.98; to: "bg";}
104                                 color: 255 255 255 255;
105                                 text {
106                                         style: "icon_label";
107                                         align: 0.5 0.0;
108                                 }
109                         }
110                         description {
111                                 state: "disable" 0.0;
112                                 inherit: "default" 0.0;
113                                 color: 0 0 0 50;
114                         }
115                         description {
116                                 state: "hide" 0.0;
117                                 inherit: "default" 0.0;
118                                 visible: 0;
119                         }
120                 } //"icon_name"
121
122                 part { name: "icon_badge";
123                         type: IMAGE;
124                         scale: 0;
125                         description {
126                                 state: "default" 0.0;
127                                 rel1{relative: 0.0 0.0; offset: -10 -1; to: "badge_text";}
128                                 rel2{relative: 1.0 1.0; offset: 13 1; to: "badge_text";}
129                                 visible: 0;
130                                 image
131                                 {
132                                         normal: "icon_badge_container.png";
133                                 }
134                         }
135                         description {
136                                 state: "show" 0.0;
137                                 inherit: "default" 0.0;
138                                 visible: 1;
139                         }
140                 } //"icon_badge"
141
142                 part { name: "badge_text";
143                         type: TEXT;
144                         scale: 1;
145                         description {
146                                 state: "default" 0.0;
147                                 visible: 0;
148                                 fixed: 1 1;
149                                 color: 255 255 255 255;
150                                 rel1{relative: 0.95 -0.05; to: "icon_content";}
151                                 rel2{relative: 0.95 -0.05; to: "icon_content";}
152                                 align: 1.0 0.0;
153                                 text {
154                                         font: "arial";
155                                         size: 20;
156                                         text_class: "ATO002";
157                                         min: 1 1;
158                                         max: 1 1;
159                                         ellipsis: -1;
160                                 }
161                         }
162                         description {
163                             state: "show" 0.0;
164                             inherit: "default" 0.0;
165                             visible: 1;
166                         }
167                 } //"badge_text"
168
169                 part { name: "icon_sub_badge";
170                         type: IMAGE;
171                         scale: 0;
172                         description {
173                                 state: "default" 0.0;
174                                 rel1{relative: 0.6 0.6; to: "icon_content";}
175                                 rel2{relative: 1.1 1.1; to: "icon_content";}
176                                 color: 255 255 255 255;
177                                 visible: 1;
178                                 aspect: 1.0 1.0;
179                                 aspect_preference: BOTH;
180                                 image
181                                 {
182                                         normal: "sub_badge.png";
183                                 }
184                         }
185                         description {
186                                 state: "hide" 0.0;
187                                 inherit: "default" 0.0;
188                                 visible: 0;
189                         }
190                 } //"icon_sub_badge"
191
192                 part { name: "uninstall_btn";
193                         type: IMAGE;
194                         scale: 0;
195                         description {
196                                 state: "default" 0.0;
197                                 rel1{relative: -0.1 -0.1; to: "icon_content";}
198                                 rel2{relative: 0.4 0.4; to: "icon_content";}
199                                 color: 255 255 255 0;
200                                 visible: 0;
201                                 aspect: 1.0 1.0;
202                                 aspect_preference: BOTH;
203                                 image {
204                                         normal: "btn_delete_nor.png";
205                                 }
206                         }
207                         description {
208                                 state: "show" 0.0;
209                                 inherit: "default" 0.0;
210                                 color: 255 255 255 255;
211                                 visible: 1;
212                         }
213                         description {
214                                 state: "press" 0.0;
215                                 inherit: "default" 0.0;
216                                 color: 255 255 255 255;
217                                 image {
218                                         normal: "btn_delete_press.png";
219                                 }
220                                 visible: 1;
221                         }
222                 } //"uninstall_btn"
223         }
224
225         programs {
226                 program { name: "icon_touch_program";
227                         signal: "mouse,down,1";
228                         source: "icon_touch";
229                         action: STATE_SET "icon_touched" 0.0;
230                         target: "icon_touch";
231                         transition: LINEAR 0.1;
232                 }
233                 program { name: "icon_touch_release_program";
234                         signal: "mouse,up,1";
235                         source: "icon_touch";
236                         action: STATE_SET "default" 0.0;
237                         target: "icon_touch";
238                         transition: LINEAR 0.1;
239                 }
240                 program { name: "icon_sub_badge_show";
241                         signal: "icon_sub_badge_show";
242                         source: "source";
243                         action: STATE_SET "default" 0.0;
244                         target: "icon_sub_badge";
245                 }
246                 program { name: "icon_sub_badge_hide";
247                         signal: "icon_sub_badge_hide";
248                         source: "source";
249                         action: STATE_SET "hide" 0.0;
250                         target: "icon_sub_badge";
251                 }
252                 program { name: "uninstall_button_show";
253                         signal: "uninstall_button_show";
254                         source: "source";
255                         action: STATE_SET "show" 0.0;
256                         target: "uninstall_btn";
257                 }
258                 program { name: "uninstall_button_hide";
259                         signal: "uninstall_button_hide";
260                         source: "source";
261                         action: STATE_SET "default" 0.0;
262                         target: "uninstall_btn";
263                 }
264                 program { name: "uninstall_button_clicked";
265                         signal: "mouse,clicked,1";
266                         source: "uninstall_btn";
267                         action: SIGNAL_EMIT "uninstall_button_clicked" "source";
268                 }
269                 program { name: "uninstall_button_mouse_down";
270                         signal: "mouse,down,1";
271                         source: "uninstall_btn";
272                         action: STATE_SET "press" 0.0;
273                         target: "uninstall_btn";
274                         transition: DECELERATE 0.4;
275                 }
276                 program { name: "uninstall_button_mouse_up";
277                         signal: "mouse,up,1";
278                         source: "uninstall_btn";
279                         action: STATE_SET "show" 0.0;
280                         target: "uninstall_btn";
281                         transition: DECELERATE 0.4;
282                 }
283                 program { name: "icon_badge_show";
284                         signal: "icon_badge_show";
285                         source: "source";
286                         action: STATE_SET "show" 0.0;
287                         target: "icon_badge";
288                         target: "badge_text";
289                 }
290                 program { name: "icon_badge_hide";
291                         signal: "icon_badge_hide";
292                         source: "source";
293                         action: STATE_SET "default" 0.0;
294                         target: "icon_badge";
295                         target: "badge_text";
296                 }
297                 program { name: "icon_disable";
298                         signal: "icon_disable";
299                         source: "source";
300                         action: STATE_SET "disable" 0.0;
301                         target: "app_icon_disable";
302                         target: "icon_name";
303                 }
304                 program { name: "icon_enable";
305                         signal: "icon_enable";
306                         source: "source";
307                         action: STATE_SET "default" 0.0;
308                         target: "icon_name";
309                         target: "app_icon_disable";
310                 }
311         }
312 }