[Task-mgr] Fixed scale and long size name issues
[apps/core/preloaded/taskmanager.git] / res / edje / item.edc
1 /*
2  *  Task Manager
3  *
4  * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20  #include "conf.h"
21
22
23
24 styles {
25         style {
26                 name: "item_style";
27                 base: "font=Tizen:style=Bold font_size=32 color=#ffffff align=left style=shadow shadow_color=#000000bf wrap=mixed";
28                 tag:  "br" "\n";
29                 tag:  "hilight" "+ font_weight=Bold";
30                 tag:  "b" "+ font_weight=Bold";
31                 tag:  "tab" "\t";
32         }
33 }
34
35 images {
36         image: "clear_all_button_icon.png" COMP;
37         image: "clear_all_button_icon_disable.png" COMP;
38 }
39
40 externals {
41         external: "feedback";
42 }
43
44 collections {
45         base_scale: 2.6;
46         plugins {
47                 plugin {
48                         name: "touch_sound";
49                         source: "feedback";
50                         param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP";
51                 }
52         }
53         group {
54                 name: "item";
55                 parts {
56                         part {
57                                 name: "bg";
58                                 type: RECT;
59                                 scale: 1;
60                                 description {
61                                         state: "default" 0.0;
62                                         rel1 { relative: 0.0 0.0; }
63                                         rel2 { relative: 1.0 1.0; }
64                                         color: 255 255 255 0;
65                                         min: ITEM_WIDTH ITEM_HEIGHT;
66                                         visible: 1;
67                                 }
68                         }
69                         part{
70                                 name: "line";
71                                 type: RECT;
72                                 scale: 1;
73                                 description {
74                                         state: "default" 0.0;
75                                         color: 255 255 255 255;
76                                         rel1 { relative: 0.5 0.0; to: "bg"; }
77                                         rel2 { relative: 0.5 1.0; to: "bg"; }
78                                         min: ITEM_LINE_WIDTH 0;
79                                         fixed: 1 0;
80                                         visible: 1;
81                                         align: 0.5 0.5;
82                                 }
83                         }
84                         part {
85                                 name: "inner";
86                                 type: SWALLOW;
87                                 scale: 1;
88                                 description {
89                                         state: "default" 0.0;
90                                         rel1.relative: 0.0 0.0;
91                                         rel2.relative: 1.0 1.0;
92                                         visible: 1;
93                                         fixed: 1 1;
94                                 }
95                         }
96                 }
97         }
98         group {
99                 name: "item_inner";
100                 parts {
101                         part {
102                                 name: "bg";
103                                 type: RECT;
104                                 scale: 1;
105                                 description {
106                                         state: "default" 0.0;
107                                         rel1 { relative: 0.0 0.0; }
108                                         rel2 { relative: 1.0 1.0; }
109                                         color: 255 255 255 0;
110                                         min: ITEM_WIDTH ITEM_HEIGHT;
111                                         visible: 1;
112                                 }
113                         }
114                         part {
115                                 name: "icon";
116                                 type: SWALLOW;
117                                 scale: 1;
118                                 description {
119                                         state: "default" 0.0;
120                                         rel1 { relative: 0.5 0.0; to: "bg"; }
121                                         rel2 { relative: 0.5 0.0; to: "bg"; }
122                                         visible: 1;
123                                         min: ITEM_ICON_WIDTH ITEM_ICON_HEIGHT;
124                                         fixed: 1 1;
125                                         align: 0.5 0.0;
126                                 }
127                         }
128                         part {
129                                 name: "name";
130                                 type: TEXTBLOCK;
131                                 scale: 1;
132                                 description {
133                                         state: "default" 0.0;
134                                         color: 255 255 255 255;
135                                         rel1 { relative: 1.0 0.0; to: "icon"; offset: 20 0; }
136                                         rel2 { relative: 1.0 1.0; to: "icon"; offset: 220 0; }
137                                         text {
138                                                 text: "";
139                                                 style: "item_style";
140                                                 min: 0 0;
141                                         }
142                                         align: 0.0 0.5;
143                                         visible: 1;
144                                 }
145                         }
146                         part {
147                                 name: "event";
148                                 type: RECT;
149                                 description {
150                                         state: "default" 0.0;
151                                         color: 0 0 0 0;
152                                         rel1 { relative: 0.0 0.0; to: "icon"; }
153                                         rel2 { relative: 1.0 1.0; to: "icon"; }
154                                         visible: 1;
155                                 }
156                         }
157                 } //parts
158                 programs {
159                         program {
160                                 name: "click,sound";
161                                 signal: "clicked";
162                                 source: "event";
163                                 action: RUN_PLUGIN "touch_sound";
164                         }
165                 } //programs
166         } //group
167
168         group {
169                 name: "clear_item";
170                 parts {
171                         part {
172                                 name: "bg";
173                                 type: RECT;
174                                 scale: 1;
175                                 description {
176                                         state: "default" 0.0;
177                                         rel1 { relative: 0.0 0.0; }
178                                         rel2 { relative: 1.0 1.0; }
179                                         color: 255 255 255 0;
180                                         min: ITEM_WIDTH CLEAR_ITEM_HEIGHT;
181                                         visible: 1;
182                                 }
183                         }
184                         part {
185                                 name: "top_pad";
186                                 type: SPACER;
187                                 scale: 1;
188                                 description {
189                                         state: "default" 0.0;
190                                         rel1 { relative: 0.0 0.0; to: "bg"; }
191                                         rel2 { relative: 1.0 0.0; to: "bg"; }
192                                         min: 0 CLEAR_PAD_HEIGHT;
193                                         align: 0.5 0.0;
194                                 }
195                         }
196                         part{
197                                 name: "line";
198                                 type: RECT;
199                                 scale: 1;
200                                 description {
201                                         state: "default" 0.0;
202                                         color: 255 255 255 255;
203                                         rel1 { relative: 0.5 0.0; offset: 0 5; to: "clear_img"; }
204                                         rel2 { relative: 0.5 1.0; to: "bg"; }
205                                         min: CLEAR_LINE_WIDTH 0;
206                                         visible: 1;
207                                         align: 0.5 0.5;
208                                         fixed: 1 0;
209                                 }
210                         }
211                         part {
212                                 name: "clear_img";
213                                 type: IMAGE;
214                                 scale: 1;
215                                 description {
216                                         state: "default" 0.0;
217                                         rel1 { relative: 0.5 1.0; to: "top_pad"; }
218                                         rel2 { relative: 0.5 1.0; to: "top_pad"; }
219                                         image {
220                                                 normal: "clear_all_button_icon.png";
221                                         }
222                                         visible: 1;
223                                         min: CLEAR_ICON_WIDTH CLEAR_ICON_HEIGHT;
224                                         align: 0.5 0.0;
225                                         fixed: 1 1;
226                                 }
227                                 description {
228                                         state: "no,apps" 0.0;
229                                         inherit: "default" 0.0;
230                                         image {
231                                                 normal: "clear_all_button_icon_disable.png";
232                                         }
233                                 }
234                         }
235                         part {
236                                 name: "name";
237                                 type: TEXTBLOCK;
238                                 scale: 1;
239                                 description {
240                                         state: "default" 0.0;
241                                         color: 255 255 255 255;
242                                         rel1 { relative: 1.0 0.0; to: "clear_img"; offset: 37 0; }
243                                         rel2 { relative: 1.0 1.0; to: "clear_img"; }
244                                         text {
245                                                 text: "Clear all";
246                                                 style: "item_style";
247                                                 min: 1 0;
248                                         }
249                                         align: 0.0 0.5;
250                                         visible: 1;
251                                         fixed: 1 0;
252                                 }
253                                 description {
254                                         state: "no,apps" 0.0;
255                                         inherit: "default" 0.0;
256                                         color: 255 255 255 124;
257                                 }
258                         }
259                         part {
260                                 name: "event";
261                                 type: RECT;
262                                 description {
263                                         state: "default" 0.0;
264                                         color: 0 0 0 0;
265                                         rel1.to: "clear_img";
266                                         rel2.to: "clear_img";
267                                         visible: 1;
268                                 }
269                                 description {
270                                         state: "no,apps" 0.0;
271                                         inherit: "default" 0.0;
272                                         visible: 0;
273                                 }
274                         }
275                 } //parts
276                 programs {
277                         program {
278                                 name: "click,sound";
279                                 signal: "mouse,clicked,1";
280                                 source: "event";
281                                 action: RUN_PLUGIN "touch_sound";
282                         }
283                         program {
284                                 name: "no,app";
285                                 signal: "no,apps";
286                                 source: "clear";
287                                 action: STATE_SET "no,apps" 0.0;
288                                 target: "clear_img";
289                                 target: "name";
290                                 target: "event";
291                         }
292                 }
293         } //group
294 } //collections