[Task-mgr] Merge 3.0 into 2.4
[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=30 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 collections {
41         base_scale: 2.1;
42         group {
43                 name: "item";
44                 parts {
45                         part {
46                                 name: "bg";
47                                 type: RECT;
48                                 scale: 1;
49                                 description {
50                                         state: "default" 0.0;
51                                         rel1 { relative: 0.0 0.0; }
52                                         rel2 { relative: 1.0 1.0; }
53                                         color: 255 255 255 0;
54                                         min: ITEM_WIDTH ITEM_HEIGHT;
55                                         visible: 1;
56                                 }
57                         }
58                         part{
59                                 name: "line";
60                                 type: RECT;
61                                 description {
62                                         state: "default" 0.0;
63                                         color: 255 255 255 255;
64                                         rel1 { relative: 0.5 0.0; to: "bg"; }
65                                         rel2 { relative: 0.5 1.0; to: "bg"; }
66                                         min: ITEM_LINE_WIDTH 0;
67                                         fixed: 1 0;
68                                         visible: 1;
69                                         align: 0.5 0.5;
70                                 }
71                         }
72                         part {
73                                 name: "inner";
74                                 type: SWALLOW;
75                                 scale: 1;
76                                 description {
77                                         state: "default" 0.0;
78                                         rel1.relative: 0.0 0.0;
79                                         rel2.relative: 1.0 1.0;
80                                         visible: 1;
81                                 }
82                         }
83                         part {
84                                 name: "focus";
85                                 type: SWALLOW;
86                                 scale: 1;
87                                 description {
88                                         state: "default" 0.0;
89                                         rel1 { relative: 0.0 0.0; to: "bg"; }
90                                         rel2 { relative: 1.0 1.0; to: "bg"; }
91                                         visible: 1;
92                                 }
93                         }
94                 }
95         }
96         group {
97                 name: "item_inner";
98                 parts {
99                         part {
100                                 name: "bg";
101                                 type: RECT;
102                                 scale: 1;
103                                 description {
104                                         state: "default" 0.0;
105                                         rel1 { relative: 0.0 0.0; }
106                                         rel2 { relative: 1.0 1.0; }
107                                         color: 255 255 255 0;
108                                         min: ITEM_WIDTH ITEM_HEIGHT;
109                                         visible: 1;
110                                 }
111                         }
112                         part {
113                                 name: "icon";
114                                 type: SWALLOW;
115                                 description {
116                                         state: "default" 0.0;
117                                         rel1 { relative: 0.5 0.0; to: "bg"; }
118                                         rel2 { relative: 0.5 0.0; to: "bg"; }
119                                         visible: 1;
120                                         min: ITEM_ICON_WIDTH ITEM_ICON_HEIGHT;
121                                         fixed: 1 1;
122                                         align: 0.5 0.0;
123                                 }
124                         }
125                         part {
126                                 name: "name";
127                                 type: TEXTBLOCK;
128                                 description {
129                                         state: "default" 0.0;
130                                         color: 255 255 255 255;
131                                         rel1 { relative: 1.0 0.0; to: "icon"; offset: 20 0; }
132                                         rel2 { relative: 1.0 1.0; to: "icon"; }
133                                         text {
134                                                 text: "";
135                                                 style: "item_style";
136                                                 min: 1 0;
137                                         }
138                                         align: 0.0 0.5;
139                                         visible: 1;
140                                 }
141                         }
142                 } //parts
143         } //group
144
145         group {
146                 name: "clear_item";
147                 parts {
148                         part {
149                                 name: "bg";
150                                 type: RECT;
151                                 scale: 1;
152                                 description {
153                                         state: "default" 0.0;
154                                         rel1 { relative: 0.0 0.0; }
155                                         rel2 { relative: 1.0 1.0; }
156                                         color: 255 255 255 0;
157                                         min: ITEM_WIDTH CLEAR_ITEM_HEIGHT;
158                                         visible: 1;
159                                 }
160                         }
161                         part{
162                                 name: "line";
163                                 type: RECT;
164                                 description {
165                                         state: "default" 0.0;
166                                         color: 255 255 255 255;
167                                         rel1 { relative: 0.5 0.0; to: "bg"; }
168                                         rel2 { relative: 0.5 1.0; to: "bg"; }
169                                         min: CLEAR_LINE_WIDTH 0;
170                                         visible: 1;
171                                         align: 0.5 0.5;
172                                         fixed: 1 0;
173                                 }
174                         }
175                         part {
176                                 name: "clear_img";
177                                 type: IMAGE;
178                                 scale: 1;
179                                 description {
180                                         state: "default" 0.0;
181                                         rel1 { relative: 0.5 0.0; to: "bg"; }
182                                         rel2 { relative: 0.5 0.0; to: "bg"; }
183                                         image {
184                                                 normal: "clear_all_button_icon.png";
185                                         }
186                                         visible: 1;
187                                         min: CLEAR_ICON_WIDTH CLEAR_ICON_HEIGHT;
188                                         align: 0.5 0.0;
189                                         fixed: 1 1;
190                                 }
191                                 description {
192                                         state: "no,apps" 0.0;
193                                         inherit: "default" 0.0;
194                                         image {
195                                                 normal: "clear_all_button_icon_disable.png";
196                                         }
197                                 }
198                         }
199                         part {
200                                 name: "name";
201                                 type: TEXTBLOCK;
202                                 description {
203                                         state: "default" 0.0;
204                                         color: 255 255 255 255;
205                                         rel1 { relative: 1.0 0.0; to: "clear_img"; offset: 37 0; }
206                                         rel2 { relative: 1.0 1.0; to: "clear_img"; }
207                                         text {
208                                                 text: "Clear all";
209                                                 style: "item_style";
210                                                 min: 1 0;
211                                         }
212                                         align: 0.0 0.5;
213                                         visible: 1;
214                                         fixed: 1 0;
215                                 }
216                                 description {
217                                         state: "no,apps" 0.0;
218                                         inherit: "default" 0.0;
219                                         color: 255 255 255 124;
220                                 }
221                         }
222                         part {
223                                 name: "event";
224                                 type: RECT;
225                                 description {
226                                         state: "default" 0.0;
227                                         color: 0 0 0 0;
228                                         rel1.to: "clear_img";
229                                         rel2.to: "clear_img";
230                                         visible: 1;
231                                 }
232                                 description {
233                                         state: "no,apps" 0.0;
234                                         inherit: "default" 0.0;
235                                         visible: 0;
236                                 }
237                         }
238                 } //parts
239                 programs {
240                         program {
241                                 name: "event,click";
242                                 signal: "mouse,clicked,1";
243                                 source: "event";
244                                 action: SIGNAL_EMIT "click" "clear_item";
245                         }
246                         program {
247                                 name: "no,app";
248                                 signal: "no,apps";
249                                 source: "clear";
250                                 action: STATE_SET "no,apps" 0.0;
251                                 target: "clear_img";
252                                 target: "name";
253                                 target: "event";
254                         }
255                 }
256         } //group
257 } //collections