The source code moved from the SPIN with license changed to Flora 1.1
[apps/native/home/homescreen-efl.git] / res / edje / livebox_layout.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 #include "../../inc/conf.h"
18
19 images
20 {
21         image: "../images/btn_delete_nor.png" COMP;
22         image: "../images/reposition_bg.png" COMP;
23         image: "../images/reposition_bg_shadow.png" COMP;
24 }
25
26 collections
27 {
28         group
29         {
30                 name: "livebox";
31                 parts
32                 {
33                         part
34                         {
35                                 name: "reposition_bg";
36                                 type: IMAGE;
37                                 scale: 1;
38                                 mouse_events: 0;
39                                 repeat_events: 1;
40                                 description
41                                 {
42                                         state: "default" 0.0;
43                                         rel1{relative: 0.0 0.0; to: "livebox";}
44                                         rel2{relative: 1.0 1.0; to: "livebox";}
45                                         color: LIVEBOX_REPOSITION_BG_COLOR LIVEBOX_REPOSITION_BG_COLOR LIVEBOX_REPOSITION_BG_COLOR 0;
46                                         image
47                                         {
48                                                 normal: "../images/reposition_bg.png";
49                                                 border: LIVEBOX_REPOSITION_BG_BORDER LIVEBOX_REPOSITION_BG_BORDER LIVEBOX_REPOSITION_BG_BORDER LIVEBOX_REPOSITION_BG_BORDER;
50                                         }
51                                 }
52                                 description
53                                 {
54                                         state: "visible" 0.0;
55                                         inherit: "default" 0.0;
56                                         color: LIVEBOX_REPOSITION_BG_COLOR LIVEBOX_REPOSITION_BG_COLOR LIVEBOX_REPOSITION_BG_COLOR LIVEBOX_REPOSITION_BG_COLOR;
57                                 }
58                         }
59
60                         part
61                         {
62                                 name: "livebox";
63                                 type: SWALLOW;
64                                 scale: 1;
65                                 mouse_events: 1;
66                                 description
67                                 {
68                                         state: "default" 0.0;
69                                         visible: 1;
70                                         rel1.relative: 0.0 0.0;
71                                         rel2.relative: 1.0 1.0;
72                                 }
73                         }
74
75                         part
76                         {
77                                 name: "remove_button_rect";
78                                 type: SPACER;
79                                 scale: 1;
80                                 mouse_events: 1;
81                                 description
82                                 {
83                                         state: "default" 0.0;
84                                         rel1{relative: 0.0 0.0; to: "livebox";}
85                                         rel2{relative: 1.0 1.0; to: "livebox";}
86                                         align: 0.0 0.0;
87                                         aspect: 1.0 1.0;
88                                         min: LIVEBOX_REMOVE_LB_BUTTON_SIZE+LIVEBOX_REMOVE_LB_OFFSET_X LIVEBOX_REMOVE_LB_BUTTON_SIZE+LIVEBOX_REMOVE_LB_OFFSET_Y;
89                                         max: LIVEBOX_REMOVE_LB_BUTTON_SIZE+LIVEBOX_REMOVE_LB_OFFSET_X LIVEBOX_REMOVE_LB_BUTTON_SIZE+LIVEBOX_REMOVE_LB_OFFSET_Y;
90                                         aspect_preference: BOTH;
91                                         fixed: 1 1;
92
93                                 }
94                         }
95
96                         part
97                         {
98                                 name: "remove_button";
99                                 type: IMAGE;
100                                 scale: 1;
101                                 mouse_events: 1;
102                                 repeat_events: 0;
103                                 description
104                                 {
105                                         state: "default" 0.0;
106                                         visible: 0;
107                                         rel1{relative: 0.0 0.0; to: "remove_button_rect";}
108                                         rel2{relative: 1.0 1.0; to: "remove_button_rect";}
109                                         align: 1.0 1.0;
110                                         aspect: 1.0 1.0;
111                                         min: LIVEBOX_REMOVE_LB_BUTTON_SIZE LIVEBOX_REMOVE_LB_BUTTON_SIZE;
112                                         max: LIVEBOX_REMOVE_LB_BUTTON_SIZE LIVEBOX_REMOVE_LB_BUTTON_SIZE;
113                                         aspect_preference: BOTH;
114                                         fixed: 1 1;
115                                         image
116                                         {
117                                                 normal: "../images/btn_delete_nor.png";
118                                         }
119                                 }
120                                 description
121                                 {
122                                         state: "show" 0.0;
123                                         inherit: "default" 0.0;
124                                         color: 255 255 255 255;
125                                         visible: 1;
126                                 }
127                         }
128                 }
129
130                 programs {
131                 //Remove button
132                         program {
133                                 name: "remove_button_show";
134                                 signal: "remove_button,show";
135                                 source: "livebox";
136                                 action: STATE_SET "show" 0.0;
137                                 target: "remove_button";
138                                 transition: DECELERATE 0.20;
139                         }
140
141                         program {
142                                 name: "remove_button_hide";
143                                 signal: "remove_button,hide";
144                                 source: "livebox";
145                                 action: STATE_SET "default" 0.0;
146                                 target: "remove_button";
147                                 transition: DECELERATE 0.20;
148                         }
149
150                         program {
151                                 name: "remove_button_hide_instant";
152                                 signal: "remove_button,hide,instant";
153                                 source: "livebox";
154                                 action: STATE_SET "default" 0.0;
155                                 target: "remove_button";
156                         }
157
158
159                         program {
160                                 name: "reposition_bg_show";
161                                 signal: "reposition_bg,show";
162                                 source: "livebox";
163                                 action: STATE_SET "visible" 0.0;
164                                 target: "reposition_bg";
165                         }
166
167                         program {
168                                 name: "reposition_bg_hide";
169                                 signal: "reposition_bg,hide";
170                                 source: "livebox";
171                                 action: STATE_SET "default" 0.0;
172                                 target: "reposition_bg";
173                         }
174                 }
175         }
176 }