tizen 2.3.1 release
[apps/home/b2-clocksetting.git] / data / groups / two_finger_control.edc
1 /*
2  *  Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  *  Licensed under the Flora License, Version 1.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://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 group { name: "setting/layout/button_controller2/default";
18    images {
19       image: "tw_number_controller_button_bg.png" COMP;
20       image: "tw_number_controller_contents_bg.png" COMP;
21    }
22    styles{
23       style { name: "controller_style";
24          base: "font=Tizen:style=Regular font_size="20" align=center color=#FF9100 text_class=tizen";
25          tag:  "br" "\n";
26          tag:  "hilight" "+ font_weight=Bold";
27          tag:  "b" "+ font_weight=Bold";
28          tag:  "tab" "\t";
29       }
30    }
31    parts {
32       part { name: "bg";
33          scale: 1;
34          description { state: "default" 0.0;
35             min: 284 86;
36             max: 284 86;
37             fixed: 1 1;
38             image {
39                normal: "tw_number_controller_button_bg.png";
40                border: 7 7 7 7;
41                border_scale: 1;
42             }
43          }
44       }
45       part { name: "top_left_padding";
46          type: SPACER;
47          scale: 1;
48          description { state: "default" 0.0;
49             min: 6 6;
50             max: 6 6;
51             fixed: 1 1;
52             align: 0.0 0.0;
53             rel2.relative: 0.0 0.0;
54          }
55       }
56       part { name: "bottom_right_padding";
57          type: SPACER;
58          scale: 1;
59          description { state: "default" 0.0;
60             min: 6 6;
61             max: 6 6;
62             fixed: 1 1;
63             align: 1.0 1.0;
64             rel1.relative: 1.0 1.0;
65          }
66       }
67       part { name: "center_padding";
68          type: SPACER;
69          scale: 1;
70          description { state: "default" 0.0;
71             min: 4 84;
72             max: 4 84;
73             fixed: 1 1;
74          }
75       }
76       part { name: "elm.icon.left";
77          type: SWALLOW;
78          scale: 1;
79          description { state: "default" 0.0;
80             min: 134 74;
81             max: 134 74;
82             fixed: 1 1;
83             align: 1.0 0.5;
84             rel1 {
85                to: "top_left_padding";
86                relative: 1.0 1.0;
87             }
88             rel2 {
89                to_x: "center_padding";
90                to_y: "bottom_right_padding";
91                relative: 0.0 0.0;
92             }
93          }
94       }
95       part { name: "elm.icon.right";
96          type: SWALLOW;
97          scale: 1;
98          description { state: "default" 0.0;
99             min: 134 74;
100             max: 134 74;
101             fixed: 1 1;
102             align: 0.0 0.5;
103             rel1 {
104                to_x: "center_padding";
105                to_y: "top_left_padding";
106                relative: 1.0 1.0;
107             }
108             rel2 {
109                to: "bottom_right_padding";
110                relative: 0.0 0.0;
111             }
112          }
113       }
114       part { name: "bg_center";
115          scale: 1;
116          description { state: "default" 0.0;
117             image.normal: "tw_number_controller_contents_bg.png";
118             image.border: 6 6 6 6;
119             image.border_scale: 1;
120             min: 94 52; // FIXME: 94 is too short for text??
121             max: 94 52;
122             fixed: 1 1;
123          }
124       }
125       part { name: "elm.icon";
126          type: SWALLOW;
127          scale: 1;
128          description { state: "default" 0.0;
129                 visible: 1;
130             min: 40 40;
131             max: 40 40;
132             fixed: 1 1;
133          }
134          description { state: "1digit" 0.0;
135             inherit: "default" 0.0;
136             fixed: 1 1;
137             align: 0.5 0.5;
138             visible: 0;
139             rel1 {
140                to_y: "bg_center";
141                offset: -25 -20;
142                relative: 0.5 0.5;
143             }
144             rel2 {
145                to_y: "bg_center";
146                offset: 15 20;
147                relative: 0.5 0.5;
148             }
149          }
150          description { state: "2digit" 0.0;
151             inherit: "1digit" 0.0;
152             rel1.offset: 2 0;
153             rel2.offset: 2 0;
154          }
155       }
156       part { name: "elm.text";
157          type: TEXTBLOCK;
158          description { state: "default" 0.0;
159                 visible: 0;
160             fixed: 1 1;
161             align: 0.0 0.5;
162             rel1 {
163                to: "bg_center";
164                offset: 35 0;
165             }
166             rel2 {
167                to: "bg_center";
168                offset: 35 -1;
169                relative: 0.0 1.0;
170             }
171             text {
172                style: "controller_style";
173                min: 1 1;
174                align: 0.5 0.5;
175             }
176          }
177          description { state: "1digit" 0.0;
178             inherit: "default" 0.0;
179             visible: 1;
180          }
181          description { state: "2digit" 0.0;
182             inherit: "1digit" 0.0;
183             rel1 {
184                to: "bg_center";
185                offset: 23 0;
186             }
187          }
188       }
189    }
190    programs {
191       program {
192          signal: "elm,state,1digit";
193          source: "*";
194          action: STATE_SET "1digit" 0.0;
195          target: "elm.icon";
196          target: "elm.text";
197       }
198       program {
199          signal: "elm,state,2digit";
200          source: "*";
201          action: STATE_SET "2digit" 0.0;
202          target: "elm.icon";
203          target: "elm.text";
204       }
205       program {
206          signal: "elm,state,nodigit";
207          source: "*";
208          action: STATE_SET "default" 0.0;
209          target: "elm.icon";
210          target: "elm.text";
211       }
212    }
213 }