add down arrow for user edit
[profile/tv/apps/native/air_home.git] / edje / view / baritem.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_BAR_ITEM;
20         images {
21                 image, "mask_user_nor.png" COMP;
22         }
23         script {
24                 public mask_on;
25         }
26         parts {
27                 part {
28                         name, "bg";
29                         type, RECT;
30                         scale, 1;
31                         description {
32                                 state, "default" 0.0;
33                                 min, 158 158;
34                                 visible, 0;
35                         }
36                 }
37                 part {
38                         name, "pad";
39                         type, RECT;
40                         scale, 1;
41                         description {
42                                 state, "default" 0.0;
43                                 min, 158 158;
44                                 rel2.relative, 0.0 0.0;
45                                 align, 0.0 0.0;
46                                 fixed, 1 1;
47                         }
48                 }
49                 part {
50                         name, "clip";
51                         type, RECT;
52                         description {
53                                 state, "default" 0.0;
54                                 color, 0 0 0 0;
55                         }
56                         description {
57                                 state, "focus" 0.0;
58                                 inherit, "default" 0.0;
59                                 color, 255 255 255 255;
60                         }
61                         description {
62                                 state, "up" 0.0;
63                                 inherit, "default" 0.0;
64                                 rel1.relative, 0.0 -1.0;
65                                 rel2.relative, 1.0 0.0;
66                                 color, 255 255 255 255;
67                         }
68                         description {
69                                 state, "down" 0.0;
70                                 inherit, "default" 0.0;
71                                 rel1.relative, 0.0 1.0;
72                                 rel2.relative, 1.0 2.0;
73                                 color, 255 255 255 255;
74                         }
75                         description {
76                                 state, "right" 0.0;
77                                 inherit, "default" 0.0;
78                                 rel1.relative, 1.0 0.0;
79                                 rel2.relative, 2.0 1.0;
80                                 color, 255 255 255 255;
81                         }
82                         description {
83                                 state, "left" 0.0;
84                                 inherit, "default" 0.0;
85                                 rel1.relative, -1.0 0.0;
86                                 rel2.relative, 0.0 1.0;
87                                 color, 255 255 255 255;
88                         }
89                 }
90                 part {
91                         name, PART_BAR_ITEM_BG;
92                         type, SWALLOW;
93                         scale, 1;
94                         clip_to, "clip";
95                         description {
96                                 state, "default" 0.0;
97                                 rel1.to, "pad";
98                                 rel2.to, "pad";
99                                 fixed, 1 1;
100                         }
101                 }
102                 part {
103                         name, PART_BAR_ITEM_ICON;
104                         type, SWALLOW;
105                         scale, 1;
106                         description {
107                                 state, "default" 0.0;
108                                 min, 70 70;
109                                 rel1.relative, 0.5 0.5;
110                                 rel2.relative, 0.5 0.5;
111                                 fixed, 1 1;
112                         }
113                 }
114                 part {
115                         name, PART_BAR_ITEM_ICON_FOCUS;
116                         type, SWALLOW;
117                         scale, 1;
118                         clip_to, "clip";
119                         description {
120                                 state, "default" 0.0;
121                                 rel1.to, PART_BAR_ITEM_ICON;
122                                 rel2.to, PART_BAR_ITEM_ICON;
123                         }
124                 }
125                 part {
126                         name, "mask";
127                         type, IMAGE;
128                         scale, 1;
129                         description {
130                                 state, "default" 0.0;
131                                 rel1.to, PART_BAR_ITEM_ICON;
132                                 rel2.to, PART_BAR_ITEM_ICON;
133                                 image.normal, "mask_user_nor.png";
134                                 visible, 0;
135                         }
136                         description {
137                                 state, "show" 0.0;
138                                 inherit, "default" 0.0;
139                                 visible, 1;
140                         }
141                 }
142                 part {
143                         name, "mask_focus";
144                         type, IMAGE;
145                         scale, 1;
146                         clip_to, "clip";
147                         description {
148                                 state, "default" 0.0;
149                                 image.normal, "mask_user_nor.png";
150                                 color, 0 119 245 255;
151                                 rel1.to, PART_BAR_ITEM_ICON;
152                                 rel2.to, PART_BAR_ITEM_ICON;
153                                 visible, 0;
154                         }
155                         description {
156                                 state, "show" 0.0;
157                                 inherit, "default" 0.0;
158                                 visible, 1;
159                         }
160                 }
161         }
162         programs {
163                 program {
164                         name, "sig,initial,focus";
165                         signal, SIG_INITIAL_FOCUS;
166                         source, SRC_PROG;
167                         action, STATE_SET "default" 0.0;
168                         target, "clip";
169                         after, "sig,focus";
170                 }
171                 program {
172                         name, "sig,focus";
173                         signal, SIG_FOCUS;
174                         source, SRC_PROG;
175                         action, STATE_SET "focus" 0.0;
176                         transition, LINEAR 0.5;
177                         target, "clip";
178                 }
179                 program {
180                         name, "sig,unfocus";
181                         signal, SIG_UNFOCUS;
182                         source, SRC_PROG;
183                         action, STATE_SET "default" 0.0;
184                         transition, LINEAR 0.5;
185                         target, "clip";
186                 }
187                 program {
188                         name, "sig,focus,to,up";
189                         signal, SIG_FOCUS_TO_UP;
190                         source, SRC_PROG;
191                         action, STATE_SET "up" 0.0;
192                         transition, LINEAR 0.5;
193                         target, "clip";
194                 }
195                 program {
196                         name, "sig,focus,to,down";
197                         signal, SIG_FOCUS_TO_DOWN;
198                         source, SRC_PROG;
199                         action, STATE_SET "down" 0.0;
200                         transition, LINEAR 0.5;
201                         target, "clip";
202                 }
203                 program {
204                         name, "sig,focus,to,right";
205                         signal, SIG_FOCUS_TO_RIGHT;
206                         source, SRC_PROG;
207                         action, STATE_SET "right" 0.0;
208                         transition, LINEAR 0.5;
209                         target, "clip";
210                 }
211                 program {
212                         name, "sig,unfocus,to,right";
213                         signal, SIG_UNFOCUS_TO_RIGHT;
214                         source, SRC_PROG;
215                         action, STATE_SET "left" 0.0;
216                         target, "clip";
217                         after, "sig,focus";
218                 }
219                 program {
220                         name, "sig,focus,to,left";
221                         signal, SIG_FOCUS_TO_LEFT;
222                         source, SRC_PROG;
223                         action, STATE_SET "left" 0.0;
224                         transition, LINEAR 0.5;
225                         target, "clip";
226                 }
227                 program {
228                         name, "sig,unfocus,to,left";
229                         signal, SIG_UNFOCUS_TO_LEFT;
230                         source, SRC_PROG;
231                         action, STATE_SET "right" 0.0;
232                         target, "clip";
233                         after, "sig,focus";
234                 }
235                 program {
236                         name, "sig,show,mask";
237                         signal, SIG_SHOW_MASK;
238                         source, SRC_PROG;
239                         script {
240                                 set_int(mask_on, 1);
241                         }
242                         after, "sig,show,mask,after";
243                 }
244                 program {
245                         name, "sig,show,mask,after";
246                         source, SRC_PROG;
247                         action, STATE_SET "show" 0.0;
248                         target, "mask";
249                 }
250                 program {
251                         name, "sig,focus,mask";
252                         signal, SIG_FOCUS;
253                         source, SRC_PROG;
254                         script {
255                                 if (get_int(mask_on) == 1)
256                                         set_state(PART:"mask_focus", "show", 0.0);
257                         }
258                 }
259         }
260 }