42e7112f15e14aff302de3e1e79bd0664cffa954
[apps/home/quickpanel.git] / data / quickpanel_minictrl.edc
1 /*
2  * Copyright (c) 2009-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
18 //#define DEBUG
19 //#define DEBUG_TEXT
20
21         group { name: "quickpanel/minictrl/default";
22                 data.item: "bgcolor" QP_THEME_BANDED_COLOR;
23                 parts {
24                         part { name: "base";
25                                 type: SPACER;
26                                 repeat_events: 1;
27                                 scale: 1;
28                                 description {
29                                         state: "default" 0.0;
30                                         min: 480 QP_THEME_LIST_ITEM_MINICONTRL_HEIGHT + QP_THEME_LIST_ITEM_SEPERATOR_HEIGHT;
31                                         max: 800 QP_THEME_LIST_ITEM_MINICONTRL_HEIGHT + QP_THEME_LIST_ITEM_SEPERATOR_HEIGHT;
32                                         fixed: 0 1;
33                                         rel1 {
34                                                 relative: 0.0 0.0;
35                                         }
36                                         rel2 {
37                                                 relative: 1.0 1.0;
38                                         }
39                                         align: 0.0 0.0;
40                                 }
41                         }
42                         part { name: "elm.padding.top";
43                                 type: SPACER;
44                                 scale: 1;
45                                 description {
46                                         state: "default" 0.0;
47                                         min: 0 20 + QP_THEME_LIST_ITEM_SEPERATOR_HEIGHT;
48                                         fixed: 0 1;
49                                         rel1.to:"base";
50                                         rel2.to:"base";
51                                         rel1.relative: 0.0 0.0;
52                                         rel2.relative: 1.0 0.0;
53                                         align: 0.0 0.0;
54                                 }
55                         }
56                         part { name: "elm.padding.left.bg";
57                                 type: SPACER;
58                                 scale: 1;
59                                 description {
60                                         state: "default" 0.0;
61                                         min: 0 0;
62                                         fixed: 1 0;
63                                         rel1.to:"base";
64                                         rel2.to:"base";
65                                         rel1.relative: 0.0 0.0;
66                                         rel2.relative: 0.0 1.0;
67                                         align: 0.0 0.0;
68                                 }
69                         }
70                         part { name: "elm.padding.right.bg";
71                                 type: SPACER;
72                                 scale: 1;
73                                 description {
74                                         state: "default" 0.0;
75                                         min: 0 0;
76                                         fixed: 1 0;
77                                         rel1.to:"base";
78                                         rel2.to:"base";
79                                         rel1.relative: 1.0 0.0;
80                                         rel2.relative: 1.0 1.0;
81                                         align: 1.0 0.0;
82                                 }
83                         }
84                         part { name: "elm.padding.top.bg";
85                                 type: SPACER;
86                                 scale: 1;
87                                 description { state: "default" 0.0;
88                                         min: 0 QP_THEME_LIST_ITEM_SEPERATOR_HEIGHT;
89                                         fixed: 0 1;
90                                         rel1.to:"base";
91                                         rel2.to:"base";
92                                         rel1.relative: 0.0 0.0;
93                                         rel2.relative: 1.0 0.0;
94                                         align: 0.0 0.0;
95                                 }
96                         }
97                         part { name: "elm.content.bg";
98                                 type: RECT;
99                                 scale: 1;
100                                 description {
101                                         state: "default" 0.0;
102                                         rel1 {
103                                                 to_x:"elm.padding.left.bg";
104                                                 to_y:"elm.padding.top.bg";
105                                                 relative: 1.0 1.0;
106                                         }
107                                         rel2 {
108                                                 to_x:"elm.padding.right.bg";
109                                                 to_y:"elm.padding.bottom";
110                                                 relative: 0.0 1.0;
111                                         }
112                                         align: 0.0 0.0;
113                                         visible: 1;
114                                         color: 255 255 255 235;
115                                         color_class: QP_THEME_ITEM_BG_COLOR;
116                                 }
117                                 description {
118                                         state: "show" 0.0;
119                                         inherit: "default" 0.0;
120                                 }
121                                 description {
122                                         state: "hide" 0.0;
123                                         inherit: "default" 0.0;
124                                         color: 0 0 0 0;
125                                 }
126                         }
127                         part { name: "bgcolor";
128                                 type: "RECT";
129                                 mouse_events: 0;
130                                 description {
131                                         state: "default" 0.0;
132                                         rel1.to:"base";
133                                         rel2.to:"base";
134                                         color_class: QP_THEME_BANDED_COLOR;
135                                         visible: 1;
136                                 }
137                         }
138                         QUICKPANEL_FOCUS_OBJECT("focus", "elm.content.bg", "elm.content.bg")
139                         part { name: "elm.padding.left";
140                                 type: SPACER;
141                                 scale: 1;
142                                 description {
143                                         state: "default" 0.0;
144                                         min: 18 0;
145                                         fixed: 1 0;
146                                         rel1.to:"base";
147                                         rel2.to:"base";
148                                         rel1.relative: 0.0 0.0;
149                                         rel2.relative: 0.0 1.0;
150                                         align: 0.0 0.0;
151                                 }
152                         }
153                         part { name: "elm.padding.right";
154                                 type: SPACER;
155                                 scale: 1;
156                                 description {
157                                         state: "default" 0.0;
158                                         min: 12 0;
159                                         fixed: 1 0;
160                                         rel1.to:"base";
161                                         rel2.to:"base";
162                                         rel1.relative: 1.0 0.0;
163                                         rel2.relative: 1.0 1.0;
164                                         align: 1.0 0.0;
165                                 }
166                         }
167                         part { name: "elm.icon";
168                                 type: SWALLOW;
169                                 mouse_events: 1;
170                                 scale: 1;
171                                 description {
172                                         state: "default" 0.0;
173                                         align: 0.0 0.0;
174                                         min: 480 135;
175                                         max: 800 135;
176                                         rel1 {
177                                                 to: "elm.content.bg";
178                                         }
179                                         rel2 {
180                                                 to_x: "elm.content.bg";
181                                                 to_y: "elm.padding.bottom";
182                                                 relative: 1.0 0.0;
183                                         }
184                                 }
185                         }
186                         part { name: "elm.padding.bottom";
187                                 type: SPACER;
188                                 scale: 1;
189                                 description {
190                                         state: "default" 0.0;
191                                         min: 0 0;
192                                         fixed: 1 0;
193                                         rel1.relative: 0.0 1.0;
194                                         rel2.relative: 1.0 1.0;
195                                         align: 0.0 1.0;
196                                 }
197                         }
198                 }
199                 programs {
200                         program{
201                                 name: "bg.show";
202                                 signal: "bg.show";
203                                 source: "prog";
204                                 action: STATE_SET "show" 0.0;
205                                 target: "elm.content.bg";
206                         }
207                         program{
208                                 name: "bg.hide";
209                                 signal: "bg.hide";
210                                 source: "prog";
211                                 action: STATE_SET "hide" 0.0;
212                                 target: "elm.content.bg";
213                         }
214                 }
215         }