5cebe2af07cc053b110b116aab28edd073822a93
[apps/home/quickpanel.git] / data / quickpanel_dual_sim.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
19
20 #include "quickpanel_def.h"
21
22 #define QP_THEME_DUAL_SIM_BG_COLOR "B0211"
23 #define QP_THEME_DUAL_SIM_HEIGHT        80
24
25 collections
26 {
27         base_scale: 1.8;
28
29         group {
30                 name: "quickpanel/dual_sim/default";
31                 data.item: "bgcolor" QP_THEME_DUAL_SIM_BG_COLOR;
32                 
33                 parts {
34                         part {
35                                 name: "base";
36                                 type: SPACER;
37                                 scale: 1;
38                                 description {
39                                         state: "default" 0.0;
40                                         min: 0 QP_THEME_DUAL_SIM_HEIGHT;
41                                         max: -1 QP_THEME_DUAL_SIM_HEIGHT;
42                                 }
43                         }
44                         part {
45                                 name: "bgcolor";
46                                 type: RECT;
47                                 scale: 1;
48                                 mouse_events: 0;
49                                 description {
50                                         state: "default" 0.0;
51                                         rel1 {
52                                                 to: "base";
53                                                 relative: 0.0 0.0;
54                                         }
55                                         rel2 {
56                                                 to: "base";
57                                                 relative: 1.0 1.0;
58                                         }
59                                         color_class: QP_THEME_DUAL_SIM_BG_COLOR;
60                                 }
61                         }
62                         part {
63                                 name: "clipper";
64                                 type: RECT;
65                                 scale: 1;
66                                 description {
67                                         state: "default" 0.0;
68                                         rel1 {
69                                                 to: "base";
70                                                 relative: 0.0 0.0;
71                                         }
72                                         rel2 {
73                                                 to: "base";
74                                                 relative: 1.0 1.0;
75                                         }
76                                         color: 255 255 255 255;
77                                 }
78                                 description {
79                                         state: "deactivate" 0.0;
80                                         inherit: "default" 0.0;
81                                         color: 255 255 255 153;
82                                 }
83                         }
84                         part {
85                                 name: "spacer.button.always_ask";
86                                 type: SPACER;
87                                 scale: 1;
88                                 description {
89                                         state: "default" 0.0;
90                                         min: 136 QP_THEME_DUAL_SIM_HEIGHT;
91                                         max: 136 QP_THEME_DUAL_SIM_HEIGHT;
92                                         fixed: 1 1;
93                                         align: 1.0 0.5;
94                                         rel1 {
95                                                 to: "base";
96                                                 relative: 1.0 0.0;
97                                         }
98                                         rel2 {
99                                                 to: "base";
100                                                 relative: 1.0 1.0;
101                                         }
102                                 }
103                         }
104                         part {
105                                 name: "spacer.button.always_ask.left";
106                                 type: SPACER;
107                                 scale: 1;
108                                 description {
109                                         state: "default" 0.0;
110                                         rel1 {
111                                                 to: "base";
112                                                 relative: 0.0 0.0;
113                                         }
114                                         rel2 {
115                                                 to: "spacer.button.always_ask";
116                                                 relative: 0.0 1.0;
117                                         }
118                                 }
119                         }
120
121                         part {
122                                 name: "dual_sim_btn1";
123                                 type: SWALLOW;
124                                 clip_to: "clipper";
125                                 scale: 1;
126                                 description {
127                                         state: "default" 0.0;
128                                         rel1 {
129                                                 to: "spacer.button.always_ask.left";
130                                                 relative: 0.0 0.0;
131                                         }
132                                         rel2 {
133                                                 to: "spacer.button.always_ask.left";
134                                                 relative: 0.5 1.0;
135                                         }
136                                 }
137                         }
138                         part {
139                                 name: "dual_sim_btn2";
140                                 type: SWALLOW;
141                                 clip_to: "clipper";
142                                 scale: 1;
143                                 description {
144                                         state: "default" 0.0;
145                                         rel1 {
146                                                 to: "spacer.button.always_ask.left";
147                                                 relative: 0.5 0.0;
148                                         }
149                                         rel2 {
150                                                 to: "spacer.button.always_ask.left";
151                                                 relative: 1.0 1.0;
152                                         }
153                                 }
154                         }
155                         part {
156                                 name: "dual_sim_btn3";
157                                 type: SWALLOW;
158                                 clip_to: "clipper";
159                                 scale: 1;
160                                 description {
161                                         state: "default" 0.0;
162                                         rel1 {
163                                                 relative: 0.0 0.0;
164                                                 to: "spacer.button.always_ask";
165                                         }
166                                         rel2 {
167                                                 relative: 1.0 1.0;
168                                                 to: "spacer.button.always_ask";
169                                         }
170                                 }
171                         }
172                 }
173                 programs {
174                         program {
175                                 name: "dualsim.activate";
176                                 signal: "dualsim.activate";
177                                 source: "clipper";
178                                 action: STATE_SET "default" 0.0;
179                                 target: "clipper";
180                         }
181                         program {
182                                 name: "dualsim.deactivate";
183                                 signal: "dualsim.deactivate";
184                                 source: "clipper";
185                                 action: STATE_SET "deactivate" 0.0;
186                                 target: "clipper";
187                         }
188                 }
189         }
190 }