3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 /////////////////////////////////////////////////////////////////////////////
21 group { name: "elm/conformant/base/default";
23 public indicator_visible = 0; //Indicator visible check
24 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
27 part { name: "elm.swallow.bg";
30 description { state: "default" 0.0;
33 part { name: "elm.swallow.content";
36 description { state: "default" 0.0;
38 rel1.relative: 0.0 1.0;
39 rel1.to: "elm.swallow.indicator";
40 rel2.relative: 1.0 0.0;
41 rel2.to: "elm.swallow.clipboard";
43 description { state: "disable_clipboard" 0.0;
44 inherit: "default" 0.0;
46 rel1.relative: 0.0 1.0;
47 rel1.to: "elm.swallow.indicator";
48 rel2.relative: 1.0 0.0;
49 rel2.to: "elm.swallow.virtualkeypad";
52 part { name: "elm.swallow.ug";
55 description { state: "default" 0.0;
57 rel1.relative: 0.0 1.0;
58 rel1.to: "elm.swallow.indicator";
59 rel2.relative: 1.0 0.0;
60 rel2.to: "elm.swallow.clipboard";
62 description { state: "overlap" 0.0;
63 inherit: "default" 0.0;
65 rel1.relative: 0.0 0.0;
66 rel1.to: "elm.swallow.indicator";
67 rel2.relative: 1.0 0.0;
68 rel2.to: "elm.swallow.clipboard";
71 part { name: "indicator_bg";
74 description { state: "default" 0.0;
77 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
78 rel2.relative: 1.0 0.0;
80 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
82 description { state: "translucent" 0.0;
85 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
86 rel2.relative: 1.0 0.0;
88 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
90 description { state: "transparent" 0.0;
93 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
94 rel2.relative: 1.0 0.0;
96 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
98 description { state: "hide" 0.0;
99 inherit: "default" 0.0;
104 part { name: "elm.swallow.indicator";
107 description { state: "default" 0.0;
110 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
111 rel2.relative: 1.0 0.0;
114 description { state: "hide" 0.0;
115 inherit: "default" 0.0;
120 part { name: "access"; type: RECT;
122 description { state: "default" 0.0;
124 rel1 { relative: 0.9 0.0; to: "elm.swallow.indicator"; }
125 rel2 { relative: 1.0 1.0; to: "elm.swallow.indicator"; }
129 description { state: "visible" 0.0;
130 inherit: "default" 0.0;
134 part { name: "elm.swallow.clipboard";
136 description { state: "default" 0.0;
139 rel1.relative: 0.0 0.0;
140 rel1.to_y: "elm.swallow.virtualkeypad";
141 rel2.relative: 1.0 0.0;
142 rel2.to_y: "elm.swallow.virtualkeypad";
145 part { name: "elm.swallow.virtualkeypad";
147 description { state: "default" 0.0;
150 rel1.relative: 0.0 1.0;
156 name: "show_indicator";
157 signal: "elm,state,indicator,show";
160 set_int(indicator_visible, 1);
161 set_state(PART:"elm.swallow.indicator", "default", 0.0);
162 if (get_int(indicator_opacity) == 0)
163 set_state(PART:"indicator_bg", "opaque", 0.0);
164 if (get_int(indicator_opacity) == 1)
165 set_state(PART:"indicator_bg", "translucent", 0.0);
166 if (get_int(indicator_opacity) == 2)
167 set_state(PART:"indicator_bg", "transparent", 0.0);
171 name: "hide_indicator";
172 signal: "elm,state,indicator,hide";
175 set_int(indicator_visible, 0);
176 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
177 set_state(PART:"indicator_bg", "hide", 0.0);
181 name: "opaque_indicator";
182 signal: "elm,state,indicator,opaque";
185 set_int(indicator_opacity, 0);
186 if (get_int(indicator_visible) == 1)
187 set_state(PART:"indicator_bg", "opaque", 0.0);
191 name: "translucent_indicator";
192 signal: "elm,state,indicator,translucent";
195 set_int(indicator_opacity, 1);
196 if (get_int(indicator_visible) == 1)
197 set_state(PART:"indicator_bg", "translucent", 0.0);
201 name: "transparent_indicator";
202 signal: "elm,state,indicator,transparent";
205 set_int(indicator_opacity, 2);
206 if (get_int(indicator_visible) == 1)
207 set_state(PART:"indicator_bg", "transparent", 0.0);
211 name: "overlap_indicator";
212 signal: "elm,state,indicator,overlap";
215 set_state(PART:"elm.swallow.ug", "overlap", 0.0);
219 name: "nooverlap_indicator";
220 signal: "elm,state,indicator,nooverlap";
223 set_state(PART:"elm.swallow.ug", "default", 0.0);
226 program { name: "access_on";
227 signal: "elm,state,access,on";
229 action: STATE_SET "visible" 0.0;
232 program { name: "access_off";
233 signal: "elm,state,access,off";
235 action: STATE_SET "default" 0.0;
238 program { name: "enable_clipboard";
239 signal: "elm,state,clipboard,enable";
241 action: STATE_SET "default" 0.0;
242 target: "elm.swallow.content";
244 program { name: "disable_clipboard";
245 signal: "elm,state,clipboard,disable";
247 action: STATE_SET "disable_clipboard" 0.0;
248 target: "elm.swallow.content";
252 group { name: "elm/conformant/base/indicator_overlap";
254 public indicator_visible = 0; //Indicator visible check
255 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
258 part { name: "elm.swallow.bg";
261 description { state: "default" 0.0;
264 part { name: "elm.swallow.content";
267 description { state: "default" 0.0;
269 rel2.relative: 1.0 0.0;
270 rel2.to: "elm.swallow.clipboard";
273 part { name: "elm.swallow.ug";
276 description { state: "default" 0.0;
278 rel1.relative: 0.0 1.0;
279 rel1.to: "elm.swallow.indicator";
280 rel2.relative: 1.0 0.0;
281 rel2.to: "elm.swallow.clipboard";
284 part { name: "indicator_bg";
287 description { state: "default" 0.0;
290 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
291 rel2.relative: 1.0 0.0;
293 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
295 description { state: "translucent" 0.0;
298 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
299 rel2.relative: 1.0 0.0;
301 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
303 description { state: "transparent" 0.0;
306 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
307 rel2.relative: 1.0 0.0;
309 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
311 description { state: "hide" 0.0;
312 inherit: "default" 0.0;
317 part { name: "elm.swallow.indicator";
320 description { state: "default" 0.0;
323 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
324 rel2.relative: 1.0 0.0;
327 description { state: "hide" 0.0;
328 inherit: "default" 0.0;
333 part { name: "elm.swallow.clipboard";
335 description { state: "default" 0.0;
338 rel1.relative: 0.0 0.0;
339 rel1.to_y: "elm.swallow.virtualkeypad";
340 rel2.relative: 1.0 0.0;
341 rel2.to_y: "elm.swallow.virtualkeypad";
344 part { name: "elm.swallow.virtualkeypad";
346 description { state: "default" 0.0;
349 rel1.relative: 0.0 1.0;
355 name: "show_indicator";
356 signal: "elm,state,indicator,show";
359 set_int(indicator_visible, 1);
360 set_state(PART:"elm.swallow.indicator", "default", 0.0);
361 if (get_int(indicator_opacity) == 0)
362 set_state(PART:"indicator_bg", "opaque", 0.0);
363 if (get_int(indicator_opacity) == 1)
364 set_state(PART:"indicator_bg", "translucent", 0.0);
365 if (get_int(indicator_opacity) == 2)
366 set_state(PART:"indicator_bg", "transparent", 0.0);
370 name: "hide_indicator";
371 signal: "elm,state,indicator,hide";
374 set_int(indicator_visible, 0);
375 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
376 set_state(PART:"indicator_bg", "hide", 0.0);
380 name: "opaque_indicator";
381 signal: "elm,state,indicator,opaque";
384 set_int(indicator_opacity, 0);
385 if (get_int(indicator_visible) == 1)
386 set_state(PART:"indicator_bg", "opaque", 0.0);
390 name: "translucent_indicator";
391 signal: "elm,state,indicator,translucent";
394 set_int(indicator_opacity, 1);
395 if (get_int(indicator_visible) == 1)
396 set_state(PART:"indicator_bg", "translucent", 0.0);
400 name: "transparent_indicator";
401 signal: "elm,state,indicator,transparent";
404 set_int(indicator_opacity, 2);
405 if (get_int(indicator_visible) == 1)
406 set_state(PART:"indicator_bg", "transparent", 0.0);
412 group { name: "elm/conformant/base/nokeypad";
414 public indicator_visible = 0; //Indicator visible check
415 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
418 part { name: "elm.swallow.bg";
421 description { state: "default" 0.0;
424 part { name: "elm.swallow.content";
427 description { state: "default" 0.0;
429 rel1.relative: 0.0 1.0;
430 rel1.to: "elm.swallow.indicator";
433 part { name: "elm.swallow.ug";
436 description { state: "default" 0.0;
438 rel1.relative: 0.0 1.0;
439 rel1.to: "elm.swallow.indicator";
442 part { name: "indicator_bg";
445 description { state: "default" 0.0;
448 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
449 rel2.relative: 1.0 0.0;
451 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
453 description { state: "translucent" 0.0;
456 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
457 rel2.relative: 1.0 0.0;
459 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
461 description { state: "transparent" 0.0;
464 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
465 rel2.relative: 1.0 0.0;
467 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
469 description { state: "hide" 0.0;
470 inherit: "default" 0.0;
475 part { name: "elm.swallow.indicator";
478 description { state: "default" 0.0;
481 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
482 rel2.relative: 1.0 0.0;
485 description { state: "hide" 0.0;
486 inherit: "default" 0.0;
494 name: "show_indicator";
495 signal: "elm,state,indicator,show";
498 set_int(indicator_visible, 1);
499 set_state(PART:"elm.swallow.indicator", "default", 0.0);
500 if (get_int(indicator_opacity) == 0)
501 set_state(PART:"indicator_bg", "opaque", 0.0);
502 if (get_int(indicator_opacity) == 1)
503 set_state(PART:"indicator_bg", "translucent", 0.0);
504 if (get_int(indicator_opacity) == 2)
505 set_state(PART:"indicator_bg", "transparent", 0.0);
509 name: "hide_indicator";
510 signal: "elm,state,indicator,hide";
513 set_int(indicator_visible, 0);
514 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
515 set_state(PART:"indicator_bg", "hide", 0.0);
519 name: "opaque_indicator";
520 signal: "elm,state,indicator,opaque";
523 set_int(indicator_opacity, 0);
524 if (get_int(indicator_visible) == 1)
525 set_state(PART:"indicator_bg", "opaque", 0.0);
529 name: "translucent_indicator";
530 signal: "elm,state,indicator,translucent";
533 set_int(indicator_opacity, 1);
534 if (get_int(indicator_visible) == 1)
535 set_state(PART:"indicator_bg", "translucent", 0.0);
539 name: "transparent_indicator";
540 signal: "elm,state,indicator,transparent";
543 set_int(indicator_opacity, 2);
544 if (get_int(indicator_visible) == 1)
545 set_state(PART:"indicator_bg", "transparent", 0.0);