2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #define TRANSITION_TIME 0.17
18 #define COLOR_ITEM_FOCUS 0 119 246 255
19 #define COLOR_TEXT_INDEX 77 77 77 255
20 #define COLOR_TEXT_FOCUS 255 255 255 255
23 name: "elm/button/base/category_btn";
24 data.item: "focus_highlight" "on";
32 rel1.to: "padding.left_top";
33 rel2.to: "padding.right_bottom";
38 inherit: "default" 0.0;
39 color: COLOR_ITEM_FOCUS;
43 name: "padding.left_top";
47 rel1.relative: 0.0 0.0;
48 rel2.relative: 0.0 0.0;
55 name: "padding.right_bottom";
79 to: "padding.left_top";
83 to: "padding.left_top";
95 color: COLOR_TEXT_INDEX;
100 inherit: "default" 0.0;
101 text.font: FONT_REGULAR;
102 color: COLOR_TEXT_FOCUS;
109 state: "default" 0.0;
117 signal: "elm,action,focus";
119 action: STATE_SET "focused" 0.0;
122 transition: LINEAR TRANSITION_TIME;
126 signal: "elm,action,unfocus";
128 action: STATE_SET "default" 0.0;
131 transition: LINEAR TRANSITION_TIME;
134 name, "mouse_unclick_after";
135 signal, "mouse,clicked,1";
137 action, SIGNAL_EMIT "elm,action,click" "";
143 data.item: "focus_highlight" "on";
144 name: "elm/button/base/square/notification_item";
151 state, "default" 0.0;
157 state, "focused" 0.0;
158 inherit, "default" 0.0;
159 color, 64 171 233 255;
167 state, "default" 0.0;
183 state, "focused" 0.0;
184 inherit, "default" 0.0;
190 name, "padding.icon";
194 state, "default" 0.0;
195 rel1.relative, 0.0 0.0;
196 rel2.relative, 0.0 0.0;
207 state, "default" 0.0;
209 to_x, "padding.icon";
213 to_x, "padding.icon";
216 color, 255 255 255 153;
224 name, "padding.text";
228 state, "default" 0.0;
247 state, "default" 0.0;
261 color, 255 255 255 128;
268 state, "focused" 0.0;
269 inherit, "default" 0.0;
270 color, 255 255 255 255;
271 text.font, FONT_REGULAR;
278 state: "default" 0.0;
286 signal, SIGNAL_FOCUSED;
288 action, STATE_SET "focused" 0.0;
295 signal, SIGNAL_UNFOCUSED;
297 action, STATE_SET "default" 0.0;
303 name, "mouse_unclick_after";
304 signal, "mouse,clicked,1";
306 action, SIGNAL_EMIT "elm,action,click" "";
312 data.item: "focus_highlight" "on";
313 name: "elm/button/base/square/notification_launch";
320 state, "default" 0.0;
327 state, "focused" 0.0;
328 inherit, "default" 0.0;
329 color, 64 171 233 255;
337 state, "default" 0.0;
357 state, "default" 0.0;
360 text, STR_SQUARE_TITLE;
366 color, 255 255 255 179;
376 state: "default" 0.0;
384 signal, SIGNAL_DISABLED;
386 action, STATE_SET "disabled" 0.0;
393 signal, SIGNAL_FOCUSED;
395 action, STATE_SET "focused" 0.0;
402 signal, SIGNAL_UNFOCUSED;
404 action, STATE_SET "default" 0.0;
410 name, "mouse_unclick_after";
411 signal, "mouse,clicked,1";
413 action, SIGNAL_EMIT "elm,action,click" "";
419 data.item: "focus_highlight" "on";
420 name: "elm/button/base/square/notification_clear";
422 image, "btn_noti_list_clearall_dis.png" COMP;
423 image, "btn_noti_list_clearall_foc.png" COMP;
424 image, "btn_noti_list_clearall_nor.png" COMP;
432 state, "default" 0.0;
439 state, "focused" 0.0;
440 inherit, "default" 0.0;
441 color, 64 171 233 255;
449 state, "default" 0.0;
469 state, "default" 0.0;
470 image.normal, "btn_noti_list_clearall_nor.png";
476 state, "disabled" 0.0;
477 inherit, "default" 0.0;
478 image.normal, "btn_noti_list_clearall_dis.png";
481 state, "focused" 0.0;
482 inherit, "default" 0.0;
483 image.normal, "btn_noti_list_clearall_foc.png";
490 state: "default" 0.0;
498 signal, SIGNAL_DISABLED;
500 action, STATE_SET "disabled" 0.0;
507 signal, SIGNAL_FOCUSED;
509 action, STATE_SET "focused" 0.0;
516 signal, SIGNAL_UNFOCUSED;
518 action, STATE_SET "default" 0.0;
524 name, "mouse_unclick_after";
525 signal, "mouse,clicked,1";
527 action, SIGNAL_EMIT "elm,action,click" "";
533 name, "elm/button/base/style.livetv.button";
534 data.item, "focus_highlight" "on";
541 state, "default" 0.0;
545 state: "focused" 0.0;
546 inherit: "default" 0.0;
547 color: 0 119 246 255;
552 name, "padding.text.left";
556 state, "default" 0.0;
569 name, "padding.text.right";
573 state, "default" 0.0;
590 state, "default" 0.0;
593 to, "padding.text.left";
597 to, "padding.text.right";
607 state: "focused" 0.0;
608 inherit: "default" 0.0;
609 color: 255 255 255 255;
612 state: "disabled" 0.0;
613 inherit: "default" 0.0;
619 name, "part.inside.line.up";
623 state, "default" 0.0;
624 color, 194 194 194 255;
637 name, "part.inside.line.left";
641 state, "default" 0.0;
642 color, 194 194 194 255;
644 to, "part.inside.line.up";
658 name, "part.inside.line.down";
662 state, "default" 0.0;
663 color, 194 194 194 255;
665 to, "part.inside.line.left";
676 name, "part.inside.line.right";
680 state, "default" 0.0;
681 color, 194 194 194 255;
683 to, "part.inside.line.up";
687 to, "part.inside.line.down";
699 signal: "elm,state,disabled";
701 action: STATE_SET "disabled" 0.0;
707 signal: "elm,action,focus";
709 action: STATE_SET "focused" 0.0;
715 signal: "elm,action,unfocus";
717 action: STATE_SET "default" 0.0;
730 name, "elm/button/base/style.action.menu.button";
731 data.item, "focus_highlight" "on";
733 public is_toggle, is_selected, is_enabled, is_focused, is_init, cur_state;
735 public init_values() {
736 if(get_int(is_init)==0)
738 set_int(is_toggle, 0);
739 set_int(is_enabled, 1);
740 set_int(is_focused, 0);
742 set_int(cur_state, -1);
745 public set_states() {
751 togg = get_int(is_toggle);
752 enab = get_int(is_enabled);
753 foc = get_int(is_focused);
754 sel = get_int(is_selected);
755 c_state = get_int(cur_state);
759 if(c_state != DISABLED)
763 run_program(PROGRAM:"do_disable");
764 run_program(PROGRAM:"do_hide.1");
767 run_program(PROGRAM:"do_disable.1");
768 run_program(PROGRAM:"do_hide");
776 if(c_state != FOCUSED)
780 run_program(PROGRAM:"do_focus");
781 run_program(PROGRAM:"do_hide.1");
784 run_program(PROGRAM:"do_focus.1");
785 run_program(PROGRAM:"do_hide");
791 if(c_state != SELECTED)
795 run_program(PROGRAM:"do_select");
796 run_program(PROGRAM:"do_hide.1");
799 run_program(PROGRAM:"do_select.1");
800 run_program(PROGRAM:"do_hide");
806 if(c_state != DEFAULT)
810 run_program(PROGRAM:"do_default");
811 run_program(PROGRAM:"do_hide.1");
814 run_program(PROGRAM:"do_default.1");
815 run_program(PROGRAM:"do_hide");
828 state, "default" 0.0;
830 color, 255 255 255 255;
833 state, "focused" 0.0;
834 inherit, "default" 0.0;
835 color, 0 119 246 255;
840 name, "padding.icon1";
844 state, "default" 0.0;
857 name, "padding.icon2";
861 state, "default" 0.0;
874 name, "part.icon.bg";
878 state, "default" 0.0;
893 name, "elm.swallow.icon";
896 clip_to: "part.icon.bg";
898 state, "default" 0.0;
900 aspect_preference, BOTH;
914 state, "focused" 0.0;
915 inherit, "default" 0.0;
919 state, "selected" 0.0;
920 inherit, "default" 0.0;
924 state, "disabled" 0.0;
925 inherit, "default" 0.0;
929 state, "invisible" 0.0;
930 inherit, "default" 0.0;
935 name, "elm.swallow.icon.focus";
938 clip_to: "part.icon.bg";
940 state, "default" 0.0;
942 aspect_preference: BOTH;
957 state, "focused" 0.0;
958 inherit, "default" 0.0;
962 state, "selected" 0.0;
963 inherit, "default" 0.0;
967 state, "disabled" 0.0;
968 inherit, "default" 0.0;
972 state, "invisible" 0.0;
973 inherit, "default" 0.0;
978 name, "elm.swallow.icon.select";
981 clip_to: "part.icon.bg";
983 state, "default" 0.0;
985 aspect_preference: BOTH;
1000 state, "focused" 0.0;
1001 inherit, "default" 0.0;
1005 state, "selected" 0.0;
1006 inherit, "default" 0.0;
1010 state, "disabled" 0.0;
1011 inherit, "default" 0.0;
1015 state, "invisible" 0.0;
1016 inherit, "default" 0.0;
1021 name, "elm.swallow.icon.disable";
1024 clip_to: "part.icon.bg";
1026 state, "default" 0.0;
1028 aspect_preference: BOTH;
1043 state, "focused" 0.0;
1044 inherit, "default" 0.0;
1048 state, "selected" 0.0;
1049 inherit, "default" 0.0;
1053 state, "disabled" 0.0;
1054 inherit, "default" 0.0;
1058 state, "invisible" 0.0;
1059 inherit, "default" 0.0;
1065 name, "elm.swallow.icon.1";
1068 clip_to: "part.icon.bg";
1070 state, "default" 0.0;
1072 aspect_preference, BOTH;
1086 state, "focused" 0.0;
1087 inherit, "default" 0.0;
1091 state, "selected" 0.0;
1092 inherit, "default" 0.0;
1096 state, "disabled" 0.0;
1097 inherit, "default" 0.0;
1101 state, "invisible" 0.0;
1102 inherit, "default" 0.0;
1107 name, "elm.swallow.icon.1.focus";
1110 clip_to: "part.icon.bg";
1112 state, "default" 0.0;
1114 aspect_preference: BOTH;
1129 state, "focused" 0.0;
1130 inherit, "default" 0.0;
1134 state, "selected" 0.0;
1135 inherit, "default" 0.0;
1139 state, "disabled" 0.0;
1140 inherit, "default" 0.0;
1144 state, "invisible" 0.0;
1145 inherit, "default" 0.0;
1150 name, "elm.swallow.icon.1.select";
1153 clip_to: "part.icon.bg";
1155 state, "default" 0.0;
1157 aspect_preference: BOTH;
1172 state, "focused" 0.0;
1173 inherit, "default" 0.0;
1177 state, "selected" 0.0;
1178 inherit, "default" 0.0;
1182 state, "disabled" 0.0;
1183 inherit, "default" 0.0;
1187 state, "invisible" 0.0;
1188 inherit, "default" 0.0;
1193 name, "elm.swallow.icon.1.disable";
1196 clip_to: "part.icon.bg";
1198 state, "default" 0.0;
1200 aspect_preference: BOTH;
1215 state, "focused" 0.0;
1216 inherit, "default" 0.0;
1220 state, "selected" 0.0;
1221 inherit, "default" 0.0;
1225 state, "disabled" 0.0;
1226 inherit, "default" 0.0;
1230 state, "invisible" 0.0;
1231 inherit, "default" 0.0;
1237 name, "padding.text";
1241 state, "default" 0.0;
1258 state, "default" 0.0;
1259 color, 104 104 104 255;
1260 rel1.to, "padding.text";
1275 state, "focused" 0.0;
1276 inherit, "default" 0.0;
1277 color, 255 255 255 255;
1280 state, "selected" 0.0;
1281 inherit, "default" 0.0;
1282 color, 64 136 211 255;
1285 state: "disabled" 0.0;
1286 inherit: "default" 0.0;
1287 color: 104 104 104 128;
1290 state, "invisible" 0.0;
1291 inherit, "default" 0.0;
1301 state, "default" 0.0;
1302 color, 104 104 104 255;
1303 rel1.to, "padding.text";
1318 state, "focused" 0.0;
1319 inherit, "default" 0.0;
1320 color, 255 255 255 255;
1323 state, "selected" 0.0;
1324 inherit, "default" 0.0;
1325 color, 64 136 211 255;
1328 state: "disabled" 0.0;
1329 inherit: "default" 0.0;
1330 color: 104 104 104 128;
1333 state, "invisible" 0.0;
1334 inherit, "default" 0.0;
1342 signal: "elm,state,toggle";
1346 set_int(is_toggle, 1);
1351 name: "go_untoggle";
1352 signal: "elm,state,untoggle";
1356 set_int(is_toggle, 0);
1362 signal: "elm,action,focus";
1366 set_int(is_focused, 1);
1371 name: "go_unfocused";
1372 signal: "elm,action,unfocus";
1376 set_int(is_focused, 0);
1382 signal: "elm,state,selected";
1386 set_int(is_selected, 1);
1392 signal: "elm,state,unselected";
1396 set_int(is_selected, 0);
1401 name: "go_disabled";
1402 signal: "elm,state,disabled";
1406 set_int(is_enabled, 0);
1412 signal: "elm,state,enabled";
1416 set_int(is_enabled, 1);
1422 action: STATE_SET "invisible" 0.0;
1424 target: "elm.swallow.icon";
1425 target: "elm.swallow.icon.focus";
1426 target: "elm.swallow.icon.select";
1427 target: "elm.swallow.icon.disable";
1431 action: STATE_SET "default" 0.0;
1434 target: "elm.swallow.icon";
1435 target: "elm.swallow.icon.focus";
1436 target: "elm.swallow.icon.select";
1437 target: "elm.swallow.icon.disable";
1441 action: STATE_SET "focused" 0.0;
1444 target: "elm.swallow.icon";
1445 target: "elm.swallow.icon.focus";
1446 target: "elm.swallow.icon.select";
1447 target: "elm.swallow.icon.disable";
1452 action: STATE_SET "selected" 0.0;
1455 target: "elm.swallow.icon";
1456 target: "elm.swallow.icon.focus";
1457 target: "elm.swallow.icon.select";
1458 target: "elm.swallow.icon.disable";
1463 action: STATE_SET "disabled" 0.0;
1466 target: "elm.swallow.icon";
1467 target: "elm.swallow.icon.focus";
1468 target: "elm.swallow.icon.select";
1469 target: "elm.swallow.icon.disable";
1474 action: STATE_SET "invisible" 0.0;
1475 target: "elm.text.1";
1476 target: "elm.swallow.icon.1";
1477 target: "elm.swallow.icon.1.focus";
1478 target: "elm.swallow.icon.1.select";
1479 target: "elm.swallow.icon.1.disable";
1483 name: "do_default.1";
1484 action: STATE_SET "default" 0.0;
1486 target: "elm.text.1";
1487 target: "elm.swallow.icon.1";
1488 target: "elm.swallow.icon.1.focus";
1489 target: "elm.swallow.icon.1.select";
1490 target: "elm.swallow.icon.1.disable";
1494 action: STATE_SET "focused" 0.0;
1496 target: "elm.text.1";
1497 target: "elm.swallow.icon.1";
1498 target: "elm.swallow.icon.1.focus";
1499 target: "elm.swallow.icon.1.select";
1500 target: "elm.swallow.icon.1.disable";
1504 name: "do_select.1";
1505 action: STATE_SET "selected" 0.0;
1507 target: "elm.text.1";
1508 target: "elm.swallow.icon.1";
1509 target: "elm.swallow.icon.1.focus";
1510 target: "elm.swallow.icon.1.select";
1511 target: "elm.swallow.icon.1.disable";
1515 name: "do_disable.1";
1516 action: STATE_SET "disabled" 0.0;
1518 target: "elm.text.1";
1519 target: "elm.swallow.icon.1";
1520 target: "elm.swallow.icon.1.focus";
1521 target: "elm.swallow.icon.1.select";
1522 target: "elm.swallow.icon.1.disable";