add down arrow for user edit
[profile/tv/apps/native/air_home.git] / edje / view / user.edc
1 /*
2  * Copyright (c) 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 #include "../../include/defs.h"
18 group {
19         name, GRP_USER;
20         parts {
21                 part {
22                         name, "pad.text";
23                         type, RECT;
24                         scale, 1;
25                         description {
26                                 state, "default" 0.0;
27                                 rel1.relative, 0.5 1.0;
28                                 rel2.relative, 0.5 1.0;
29                                 min, 0 388;
30                                 align, 0.5 1.0;
31                                 fixed, 1 1;
32                                 visible, 0;
33                         }
34                 }
35                 part {
36                         name, "text";
37                         type, TEXT;
38                         scale, 1;
39                         description {
40                                 state, "default" 0.0;
41                                 rel1.to, "pad.text";
42                                 rel2 {
43                                         to, "pad.text";
44                                         relative, 0.0 0.0;
45                                 }
46                                 min, 200 34;
47                                 fixed, 1 1;
48                                 align, 0.5 1.0;
49                                 text {
50                                         text, "Switch User";
51                                         font, "TizenSans";
52                                         size, 34;
53                                 }
54                                 color, 255 255 255 178;
55                                 color2, 0 0 0 255;
56                         }
57                 }
58                 part {
59                         name, "pad.list";
60                         type, RECT;
61                         scale, 1;
62                         description {
63                                 state, "default" 0.0;
64                                 rel1 {
65                                         to, "text";
66                                         relative, 0.5 1.0;
67                                 }
68                                 rel2 {
69                                         to, "text";
70                                         relative, 0.5 1.0;
71                                 }
72                                 min, 0 42;
73                                 align, 0.5 0.0;
74                                 fixed, 1 1;
75                                 visible, 0;
76                         }
77                 }
78                 part {
79                         name, PART_USER_BAR;
80                         type, SWALLOW;
81                         scale, 1;
82                         description {
83                                 state, "default" 0.0;
84                                 rel1 {
85                                         to, "pad.list";
86                                         relative, 1.0 1.0;
87                                 }
88                                 rel2 {
89                                         to, "pad.list";
90                                         relative, 1.0 1.0;
91                                 }
92                                 min, 1422 228;
93                                 align, 0.5 0.0;
94                                 fixed, 1 1;
95                         }
96                 }
97         }
98 }
99
100 group {
101         name, GRP_USER_ITEM;
102         inherit, GRP_BAR_ITEM;
103         data.item, TITLE_WIDTH "130";
104         images {
105                 image, "btn_navigation_down.png" COMP;
106         }
107         parts {
108                 part {
109                         name, "bg";
110                         type, RECT;
111                         scale, 1;
112                         description {
113                                 state, "default" 0.0;
114                                 min, 158 228;
115                                 visible, 0;
116                         }
117                 }
118                 part {
119                         name, "pad.icon";
120                         type, RECT;
121                         scale, 1;
122                         description {
123                                 state, "default" 0.0;
124                                 min, 0 26;
125                                 rel1.relative, 0.5 0.0;
126                                 rel2.relative, 0.5 0.0;
127                                 align, 0.5 0.0;
128                                 fixed, 1 1;
129                                 visible, 0;
130                         }
131                 }
132                 part {
133                         name, PART_BAR_ITEM_ICON;
134                         type, SWALLOW;
135                         scale, 1;
136                         description {
137                                 state, "default" 0.0;
138                                 min, 70 70;
139                                 rel1 {
140                                         to, "pad.icon";
141                                         relative, 1.0 1.0;
142                                 }
143                                 rel2 {
144                                         to, "pad.icon";
145                                         relative, 1.0 1.0;
146                                 }
147                                 align, 0.5 0.0;
148                                 fixed, 1 1;
149                         }
150                 }
151                 part {
152                         name, "pad.text";
153                         type, RECT;
154                         scale, 1;
155                         description {
156                                 state, "default" 0.0;
157                                 min, 0 12;
158                                 rel1 {
159                                         to, PART_BAR_ITEM_ICON;
160                                         relative, 0.5 1.0;
161                                 }
162                                 rel2 {
163                                         to, PART_BAR_ITEM_ICON;
164                                         relative, 0.5 1.0;
165                                 }
166                                 align, 0.5 0.0;
167                                 fixed, 1 1;
168                                 visible, 0;
169                         }
170                 }
171                 part {
172                         name, PART_BAR_ITEM_TITLE;
173                         type, SWALLOW;
174                         scale, 1;
175                         description {
176                                 state, "default" 0.0;
177                                 rel1 {
178                                         to, "pad.text";
179                                         relative, 1.0 1.0;
180                                 }
181                                 rel2 {
182                                         to, "pad.text";
183                                         relative, 1.0 1.0;
184                                 }
185                                 align, 0.5 0.0;
186                                 fixed, 1 1;
187                                 min, 130 22;
188                         }
189                 }
190                 part {
191                         name, PART_BAR_ITEM_TITLE_FOCUS;
192                         type, SWALLOW;
193                         scale, 1;
194                         clip_to, "clip";
195                         description {
196                                 state, "default" 0.0;
197                                 rel1.to, PART_BAR_ITEM_TITLE;
198                                 rel2.to, PART_BAR_ITEM_TITLE;
199                         }
200                 }
201                 part {
202                         name, "pad.lock";
203                         type, RECT;
204                         scale, 1;
205                         description {
206                                 state, "default" 0.0;
207                                 min, 16 18;
208                                 rel1.relative, 1.0 0.0;
209                                 rel2.relative, 1.0 0.0;
210                                 align, 1.0 0.0;
211                                 fixed, 1 1;
212                                 visible, 0;
213                         }
214                 }
215                 part {
216                         name, PART_BAR_ITEM_LOCK;
217                         type, SWALLOW;
218                         scale, 1;
219                         description {
220                                 state, "default" 0.0;
221                                 min, 30 30;
222                                 rel1 {
223                                         to, "pad.lock";
224                                         relative, 0.0 1.0;
225                                 }
226                                 rel2 {
227                                         to, "pad.lock";
228                                         relative, 0.0 1.0;
229                                 }
230                                 align, 1.0 0.0;
231                                 fixed, 1 1;
232                         }
233                 }
234                 part {
235                         name, PART_BAR_ITEM_LOCK_FOCUS;
236                         type, SWALLOW;
237                         scale, 1;
238                         clip_to, "clip";
239                         description {
240                                 state, "default" 0.0;
241                                 rel1.to, PART_BAR_ITEM_LOCK;
242                                 rel2.to, PART_BAR_ITEM_LOCK;
243                         }
244                 }
245                 part {
246                         name, "text";
247                         type, TEXT;
248                         scale, 1;
249                         description {
250                                 state, "default" 0.0;
251                                 min, 158 50;
252                                 rel1 {
253                                         to, "pad";
254                                         relative, 0.5 1.0;
255                                 }
256                                 rel2 {
257                                         to, "pad";
258                                         relative, 0.5 1.0;
259                                 }
260                                 align, 0.5 0.0;
261                                 fixed, 1 1;
262                                 text {
263                                         size, 26;
264                                         font, "TizenSans";
265                                         text, "Edit";
266                                 }
267                                 color, 255 255 255 178;
268                                 visible, 0;
269                         }
270                         description {
271                                 state, "focus";
272                                 inherit, "default" 0.0;
273                                 visible, 1;
274                         }
275                 }
276                 part {
277                         name, "arrow";
278                         type, IMAGE;
279                         scale, 1;
280                         description {
281                                 state, "default" 0.0;
282                                 min, 86 30;
283                                 rel1.relative, 0.5 1.0;
284                                 rel2.relative, 0.5 1.0;
285                                 image.normal, "btn_navigation_down.png";
286                                 align, 0.5 1.0;
287                                 fixed, 1 1;
288                                 visible, 0;
289                         }
290                         description {
291                                 state, "focus";
292                                 inherit, "default" 0.0;
293                                 visible, 1;
294                         }
295                 }
296         }
297         programs {
298                 program {
299                         name, "sig,show,arrow";
300                         signal, SIG_FOCUS;
301                         source, SRC_PROG;
302                         action, STATE_SET "focus";
303                         target, "text";
304                         target, "arrow";
305                 }
306                 program {
307                         name, "sig,hide,arrow";
308                         signal, SIG_UNFOCUS;
309                         source, SRC_PROG;
310                         action, STATE_SET "default";
311                         target, "text";
312                         target, "arrow";
313                 }
314         }
315 }