The source code moved from the SPIN with license changed to Flora 1.1
[apps/native/home/homescreen-efl.git] / res / edje / folder_entry.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 collections {
18         base_scale: 1.8;
19         group {
20                 name: "elm/entry/base-single/default";
21                 styles {
22                         style { name: "entry_single_textblock_style";
23                            base: "font=Tizen:style=Regular color=#00000000 align=center font_size=26 style=shadow shadow_color=#000000bf wrap=word";
24                         }
25                         style { name: "entry_single_textblock_disabled_style";
26                            base: "font=Tizen:style=Regular color=#00000000 align=center font_size=26 style=shadow shadow_color=#000000bf wrap=word";
27                         }
28                 }
29                 data {
30                         item: context_menu_orientation "horizontal";
31                 }
32                 parts {
33                         part {
34                                 name: "entry.swallow.background";
35                                 type: SWALLOW;
36                                 scale: 1;
37                                 description {
38                                         state: "default" 0.0;
39                                         visible: 1;
40                                         rel1 { relative: 0 0; to: "elm.text"; }
41                                         rel2 { relative: 1 1; to: "elm.text"; }
42                                 }
43                         }
44                 }
45                 parts {
46                         part {
47                                 name: "elm.text";
48                                 type: TEXTBLOCK;
49                                 mouse_events: 1;
50                                 scale: 1;
51                                 entry_mode: EDITABLE;
52                                 multiline: 0;
53                                 source: "elm/entry/selection/default";
54                                 source2: "elm/entry/selection/block_handle";
55                                 source3: "elm/entry/selection/block_handle_top";
56                                 source4: "elm/entry/cursor/default";
57                                 source5: "elm/entry/anchor/default";
58                                 description {
59                                         state: "default" 0.0;
60                                         text {
61                                                 style: "entry_single_textblock_style";
62                                                 min: 1 1;
63                                                 max: 0 1;
64                                         }
65                                 }
66                                 description {
67                                         state: "disabled" 0.0;
68                                         inherit: "default" 0.0;
69                                         text {
70                                                 style: "entry_single_textblock_disabled_style";
71                                         }
72                                 }
73                         }
74                 }
75                 programs {
76                         program {
77                                 name: "focus";
78                                 signal: "load";
79                                 source: "";
80                                 action: FOCUS_SET;
81                                 target: "elm.text";
82                         }
83                         program {
84                                 name: "disable";
85                                 signal: "elm,state,disabled";
86                                 source: "elm";
87                                 action: STATE_SET "disabled" 0.0;
88                                 target: "elm.text";
89                         }
90                         program {
91                                 name: "enable";
92                                 signal: "elm,state,enabled";
93                                 source: "elm";
94                                 action: STATE_SET "default" 0.0;
95                                 target: "elm.text";
96                         }
97                 }
98         }
99         group {
100                 name: "elm/entry/cursor/default";
101                 parts {
102                         part {
103                                 name: "clip2";
104                                 type: RECT;
105                                 mouse_events: 0;
106                                 scale: 1;
107                                 description {
108                                         state: "default" 0.0;
109                                         rel1.to: "clip";
110                                         rel2.to: "clip";
111                                         visible: 0;
112                                 }
113                                 description {
114                                         state: "focused" 0.0;
115                                         inherit: "default" 0.0;
116                                         visible: 1;
117                                 }
118                         }
119                         part {
120                                 name: "clip";
121                                 type: RECT;
122                                 mouse_events: 0;
123                                 scale: 1;
124                                 clip_to: "clip2";
125                                 description {
126                                         state: "default" 0.0;
127                                         rel1.offset: -10 0;
128                                         rel2.offset: 9 9;
129                                 }
130                                 description {
131                                         state: "hidden" 0.0;
132                                         inherit: "default" 0.0;
133                                         visible: 0;
134                                 }
135                         }
136                         part {
137                                 name: "base";
138                                 mouse_events: 0;
139                                 scale: 1;
140                                 clip_to: "clip";
141                                 description {
142                                         state: "default" 0.0;
143                                         min: 2 2;
144                                         align: 0.5 1.0;
145                                         color: 0 0 0 0;
146                                 }
147                         }
148                         part {
149                                 name: "glow";
150                                 type: RECT;
151                                 mouse_events: 0;
152                                 scale: 1;
153                                 clip_to: "clip2";
154                                 description {
155                                         state: "default" 0.0;
156                                         min: 4 0;
157                                         fixed: 1 0;
158                                         align: 0.5 0.5;
159                                         rel1 {
160                                                 relative: 0.0  0.0;
161                                                 offset: 0 2;
162                                         }
163                                         rel2 {
164                                                 relative: 0.0  1.0;
165                                                 offset: 0 -2;
166                                         }
167                                         color: 42 137 194 255;
168                                 }
169                                 description {
170                                         state: "hidden" 0.0;
171                                         inherit: "default" 0.0;
172                                         color: 0 0 0 0;
173                                 }
174                         }
175                 }
176                 programs {
177                         program {
178                                 name: "show";
179                                 action: STATE_SET "hidden" 0.0;
180                                 in: 0.6 0.0;
181                                 target: "glow";
182                                 after: "show4";
183                         }
184                         program {
185                                 name: "show4";
186                                 action: STATE_SET "default" 0.0;
187                                 in: 0.6 0.0;
188                                 target: "glow";
189                                 after: "show";
190                         }
191                         program {
192                                 name: "focused";
193                                 signal: "elm,action,focus";
194                                 source: "elm";
195                                 action: STATE_SET "focused" 0.0;
196                                 target: "clip2";
197                                 after: "show4";
198                         }
199                         program {
200                                 name: "unfocused";
201                                 signal: "elm,action,unfocus";
202                                 source: "elm";
203                                 action: STATE_SET "default" 0.0;
204                                 target: "clip2";
205                                 after: "stop_glow";
206                         }
207                         program {
208                                 name: "stop_glow";
209                                 action: ACTION_STOP;
210                                 target: "show";
211                                 target: "show4";
212                         }
213                 }
214         }
215         group { name: "elm/entry/selection/default";
216                 parts {
217                         part {
218                                 name: "bg";
219                                 type: RECT;
220                                 scale: 1;
221                                 mouse_events: 0;
222                                 description {
223                                         state: "default" 0.0;
224                                         color: 138 183 223 128;
225                                 }
226                         }
227                 }
228         }
229         group {
230                 name: "elm/entry/selection/block_handle";
231                 data.item: "position" "BOTH";
232                 parts {
233                         part {
234                                 name: "bg";
235                                 type: RECT;
236                                 scale: 1;
237                                 mouse_events: 1;
238                                 description {
239                                         state: "default" 0.0;
240                                         visible: 1;
241                                         fixed: 1 1;
242                                         align: 0.5 0.25;
243                                         min: 50 80;
244                                         color: 0 0 0 0;
245                                 }
246                         }
247                         part {
248                                 name: "handle";
249                                 mouse_events: 1;
250                                 scale: 1;
251                                 description {
252                                         state: "default" 0.0;
253                                         visible: 0;
254                                         fixed: 1 1;
255                                         align: 0.5 0.0;
256                                         min: 48 66;
257                                         rel1 {
258                                                 relative: 0.0 0.0;
259                                                 offset: 0 0;
260                                         }
261                                         rel2 {
262                                                 relative: 0.0 0.0;
263                                                 offset: 0 0;
264                                         }
265                                         image {
266                                                 border: 0 0 0 0;
267                                         }
268                                         image.middle: SOLID;
269                                         fill.smooth: 0;
270                                 }
271                                 description {
272                                         state: "show" 0.0;
273                                         inherit: "default" 0.0;
274                                         visible: 1;
275                                 }
276                         }
277                 }
278                 programs {
279                         program {
280                                 name: "focused";
281                                 signal: "elm,action,focus";
282                                 source: "elm";
283                                 action: STATE_SET "show" 0.0;
284                                 target: "handle";
285                         }
286                         program {
287                                 name: "unfocused";
288                                 signal: "elm,action,unfocus";
289                                 source: "elm";
290                                 action: STATE_SET "default" 0.0;
291                                 target: "handle";
292                         }
293                 }
294         }
295         group {
296                 name: "elm/entry/selection/block_handle_top";
297                 data.item: "position" "BOTH";
298                 parts {
299                         part {
300                                 name: "bg";
301                                 type: RECT;
302                                 scale: 1;
303                                 mouse_events: 1;
304                                 description {
305                                         state: "default" 0.0;
306                                         visible: 1;
307                                         fixed: 1 1;
308                                         align: 0.5 0.75;
309                                         min: 50 80;
310                                         color: 0 0 0 0;
311                                 }
312                         }
313                         part {
314                                 name: "handle";
315                                 mouse_events: 1;
316                                 scale: 1;
317                                 description {
318                                         state: "default" 0.0;
319                                         visible: 0;
320                                         fixed: 1 1;
321                                         align: 0.5 1.0;
322                                         min: 48 66;
323                                         rel1 {
324                                                 relative: 0.0 0.0;
325                                                 offset: 0 0;
326                                         }
327                                         rel2 {
328                                                 relative: 0.0 0.0;
329                                                 offset: 0 0;
330                                         }
331                                         image {
332                                                 border: 0 0 0 0;
333                                         }
334                                         image.middle: SOLID;
335                                         fill.smooth: 0;
336                                 }
337                                 description {
338                                         state: "show" 0.0;
339                                         inherit: "default" 0.0;
340                                         visible: 1;
341                                 }
342                         }
343                 }
344                 programs {
345                         program {
346                                 name: "focused";
347                                 signal: "elm,action,focus";
348                                 source: "elm";
349                                 action: STATE_SET "show" 0.0;
350                                 target: "handle";
351                         }
352                         program {
353                                 name: "unfocused";
354                                 signal: "elm,action,unfocus";
355                                 source: "elm";
356                                 action: STATE_SET "default" 0.0;
357                                 target: "handle";
358                         }
359                 }
360         }
361         group {
362                 name: "elm/entry/anchor/default";
363                 parts {
364                         part {
365                                 name: "bg";
366                                 type: RECT;
367                                 scale: 1;
368                                 mouse_events: 0;
369                                 description {
370                                         state: "default" 0.0;
371                                         color: 128 0 0 64;
372                                 }
373                         }
374                 }
375         }
376 }