summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2019-01-21 18:55:10 +0900
committerJaeun Choi <jaeun12.choi@samsung.com>2019-01-21 19:07:51 +0900
commitdab4d8d8a446f98b4fa2f63e5b948b8f629e460d (patch)
tree6deac1caba41bba3865e33fd6a7d96a97909ce8c /data
parent368ab45b266ab5da67966d26ec9b57afd54f9162 (diff)
elm_panel: show/hide panel according to hidden status
when panel becomes non-scrollable by elm_panel_scrollable_set() function, the panel needs to be shown/hidden according to the hidden status. this patch implements it.
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/elm/panel.edc55
1 files changed, 55 insertions, 0 deletions
diff --git a/data/elementary/themes/edc/elm/panel.edc b/data/elementary/themes/edc/elm/panel.edc
index 02dbdad..3f34c7c 100644
--- a/data/elementary/themes/edc/elm/panel.edc
+++ b/data/elementary/themes/edc/elm/panel.edc
@@ -542,6 +542,21 @@ group { name: "elm/panel/left/default";
542 } 542 }
543 } 543 }
544 program { 544 program {
545 signal: "elm,action,show,no_animate"; source: "elm";
546 action: STATE_SET "default" 0.0;
547 target: "elm.swallow.event";
548 target: "base";
549 }
550 program {
551 signal: "elm,action,show,no_animate"; source: "elm";
552 script {
553 if (get_int(is_rtl) == 0)
554 set_state(PART:"icn", "default", 0.0);
555 else
556 set_state(PART:"icn", "hidden", 0.0);
557 }
558 }
559 program {
545 signal: "edje,state,rtl"; 560 signal: "edje,state,rtl";
546 source: "edje"; 561 source: "edje";
547 script { 562 script {
@@ -612,6 +627,46 @@ group { name: "elm/panel/left/default";
612 target: "base"; 627 target: "base";
613 } 628 }
614 program { 629 program {
630 signal: "elm,action,hide,no_animate"; source: "elm";
631 action: STATE_SET "hidden" 0.0;
632 target: "elm.swallow.event";
633 }
634 program {
635 signal: "elm,action,hide,no_animate"; source: "elm";
636 script {
637 if (get_int(is_rtl) == 0)
638 set_state(PART:"icn", "hidden", 0.0);
639 else
640 set_state(PART:"icn", "default", 0.0);
641 }
642 }
643 program { name: "hide1_no_animate";
644 signal: "elm,action,hide,no_animate"; source: "elm";
645 script {
646 new x, y, w, h;
647 if (get_int(is_rtl) == 0)
648 {
649 custom_state(PART:"base", "default", 0.0);
650 set_state_val(PART:"base", STATE_REL1, -1.0, 0.0);
651 get_geometry(PART:"elm.swallow.event", x, y, w, h);
652 set_state_val(PART:"base", STATE_REL1_OFFSET, w, 0);
653 }
654 else
655 {
656 custom_state(PART:"base", "default", 0.0);
657 set_state_val(PART:"base", STATE_REL1, -1.0, 0.0);
658 set_state_val(PART:"base", STATE_REL2, -2.0, 1.0);
659 get_geometry(PART:"elm.swallow.event", x, y, w, h);
660 set_state_val(PART:"base", STATE_REL2_OFFSET, -w, 0);
661 }
662 }
663 after: "hide2_no_animate";
664 }
665 program { name: "hide2_no_animate";
666 action: STATE_SET "custom" 0.0;
667 target: "base";
668 }
669 program {
615 signal: "elm,action,focus_highlight,show"; source: "elm"; 670 signal: "elm,action,focus_highlight,show"; source: "elm";
616 action: STATE_SET "focused" 0.0; 671 action: STATE_SET "focused" 0.0;
617 transition: ACCELERATE 0.2; 672 transition: ACCELERATE 0.2;