Tizen 2.1 base
[apps/core/preloaded/calendar.git] / data / edc / theme / button.edc
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.0 (the "License");
6   *  you may not use this file except in compliance with the License.
7   *  You may obtain a copy of the License at
8   *
9   *       http://floralicense.org/license/
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   */
17
18 group { name: "elm/button/base/calendar/naviframe/more_left/default";
19       images {
20          image: "P01_title_left.png" COMP;
21          image: "P01_title_left_press.png" COMP;
22          image: "00_title_btn_bg_press.png" COMP;
23       }
24       parts {
25          part { name: "button_image";
26             scale: 1;
27             description { state: "default" 0.0;
28                min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
29                max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
30                color: 0 0 0 0;
31             }
32             description { state: "clicked" 0.0;
33                min: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
34                max: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
35                image {
36                   normal: "00_title_btn_bg_press.png";
37                   border: BUTTON_NAVIFRAME_MORE_BG_PRESSED_BORDER_INC;
38                   border_scale: 1;
39                }
40             }
41             description { state: "disabled" 0.0;
42                inherit: "default" 0.0;
43             }
44             description { state: "focused" 0.0;
45                inherit: "default" 0.0;
46             }
47          }
48          part { name: "more_image";
49             scale: 1;
50             mouse_events: 0;
51             description { state: "default" 0.0;
52                min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
53                max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
54                rel1.to: "button_image";
55                rel2.to: "button_image";
56                image.normal: "P01_title_left.png";
57             }
58             description { state: "clicked" 0.0;
59                inherit: "default" 0.0;
60                image.normal: "P01_title_left_press.png";
61             }
62             description { state: "disabled" 0.0;
63                inherit: "default" 0.0;
64                color: 255 255 255 127;
65             }
66          }
67          part { name: "over2";
68             type: RECT;
69             repeat_events: 1;
70             ignore_flags: ON_HOLD;
71             description { state: "default" 0.0;
72                color: 0 0 0 0;
73             }
74          }
75          part { name: "over3";
76             type: RECT;
77             repeat_events: 1;
78             description { state: "default" 0.0;
79                color: 0 0 0 0;
80             }
81          }
82          part { name: "disabler";
83             type: RECT;
84             description { state: "default" 0.0;
85                color: 0 0 0 0;
86                visible: 0;
87             }
88             description { state: "disabled" 0.0;
89                inherit: "default" 0.0;
90                visible: 1;
91             }
92          }
93       }
94       programs {
95          program { name: "button_click";
96             signal: "mouse,down,1";
97             source: "over2";
98             action: SIGNAL_EMIT "elm,action,press" "";
99             after: "button_click_anim";
100          }
101          program { name: "button_click_anim";
102             action: STATE_SET "clicked" 0.0;
103             target: "button_image";
104             target: "more_image";
105          }
106          program { name: "button_unclick";
107             signal: "mouse,up,1";
108             source: "over3";
109             action: SIGNAL_EMIT "elm,action,unpress" "";
110             after: "button_unclick_anim";
111          }
112          program { name: "button_unclick_anim";
113             action: STATE_SET "default" 0.0;
114             target: "button_image";
115             target: "more_image";
116          }
117          program { name: "button_unclick3";
118             signal: "mouse,clicked,1";
119             source: "over2";
120             action: SIGNAL_EMIT "elm,action,click" "";
121          }
122          program { name: "disable";
123             signal: "elm,state,disabled";
124             source: "elm";
125             action: STATE_SET "disabled" 0.0;
126             target: "disabler";
127             target: "button_image";
128             target: "more_image";
129          }
130          program { name: "enable";
131             signal: "elm,state,enabled";
132             source: "elm";
133             action: STATE_SET "default" 0.0;
134             target: "disabler";
135             target: "button_image";
136             target: "more_image";
137          }
138       }
139    }
140
141 group { name: "elm/button/base/calendar/naviframe/more_right/default";
142       images {
143          image: "P01_title_right.png" COMP;
144          image: "P01_title_right_press.png" COMP;
145          image: "00_title_btn_bg_press.png" COMP;
146       }
147       parts {
148          part { name: "button_image";
149             scale: 1;
150             description { state: "default" 0.0;
151                min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
152                max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
153                color: 0 0 0 0;
154             }
155             description { state: "clicked" 0.0;
156                min: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
157                max: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
158                image {
159                   normal: "00_title_btn_bg_press.png";
160                   border: BUTTON_NAVIFRAME_MORE_BG_PRESSED_BORDER_INC;
161                   border_scale: 1;
162                }
163             }
164             description { state: "disabled" 0.0;
165                inherit: "default" 0.0;
166             }
167             description { state: "focused" 0.0;
168                inherit: "default" 0.0;
169             }
170          }
171          part { name: "more_image";
172             scale: 1;
173             mouse_events: 0;
174             description { state: "default" 0.0;
175                min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
176                max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
177                rel1.to: "button_image";
178                rel2.to: "button_image";
179                image.normal: "P01_title_right.png";
180             }
181             description { state: "clicked" 0.0;
182                inherit: "default" 0.0;
183                image.normal: "P01_title_right_press.png";
184             }
185             description { state: "disabled" 0.0;
186                inherit: "default" 0.0;
187                color: 255 255 255 127;
188             }
189          }
190          part { name: "over2";
191             type: RECT;
192             repeat_events: 1;
193             ignore_flags: ON_HOLD;
194             description { state: "default" 0.0;
195                color: 0 0 0 0;
196             }
197          }
198          part { name: "over3";
199             type: RECT;
200             repeat_events: 1;
201             description { state: "default" 0.0;
202                color: 0 0 0 0;
203             }
204          }
205          part { name: "disabler";
206             type: RECT;
207             description { state: "default" 0.0;
208                color: 0 0 0 0;
209                visible: 0;
210             }
211             description { state: "disabled" 0.0;
212                inherit: "default" 0.0;
213                visible: 1;
214             }
215          }
216       }
217       programs {
218          program { name: "button_click";
219             signal: "mouse,down,1";
220             source: "over2";
221             action: SIGNAL_EMIT "elm,action,press" "";
222             after: "button_click_anim";
223          }
224          program { name: "button_click_anim";
225             action: STATE_SET "clicked" 0.0;
226             target: "button_image";
227             target: "more_image";
228          }
229          program { name: "button_unclick";
230             signal: "mouse,up,1";
231             source: "over3";
232             action: SIGNAL_EMIT "elm,action,unpress" "";
233             after: "button_unclick_anim";
234          }
235          program { name: "button_unclick_anim";
236             action: STATE_SET "default" 0.0;
237             target: "button_image";
238             target: "more_image";
239          }
240          program { name: "button_unclick3";
241             signal: "mouse,clicked,1";
242             source: "over2";
243             action: SIGNAL_EMIT "elm,action,click" "";
244          }
245          program { name: "disable";
246             signal: "elm,state,disabled";
247             source: "elm";
248             action: STATE_SET "disabled" 0.0;
249             target: "disabler";
250             target: "button_image";
251             target: "more_image";
252          }
253          program { name: "enable";
254             signal: "elm,state,enabled";
255             source: "elm";
256             action: STATE_SET "default" 0.0;
257             target: "disabler";
258             target: "button_image";
259             target: "more_image";
260          }
261       }
262    }