aboutsummaryrefslogtreecommitdiffstats
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
parentelm_panel: reset layout theme when scrollable mode is changed (diff)
downloadefl-dab4d8d8a446f98b4fa2f63e5b948b8f629e460d.tar.gz
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 02dbdadf8f..3f34c7c52d 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";
}
}
program {
+ signal: "elm,action,show,no_animate"; source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.event";
+ target: "base";
+ }
+ program {
+ signal: "elm,action,show,no_animate"; source: "elm";
+ script {
+ if (get_int(is_rtl) == 0)
+ set_state(PART:"icn", "default", 0.0);
+ else
+ set_state(PART:"icn", "hidden", 0.0);
+ }
+ }
+ program {
signal: "edje,state,rtl";
source: "edje";
script {
@@ -612,6 +627,46 @@ group { name: "elm/panel/left/default";
target: "base";
}
program {
+ signal: "elm,action,hide,no_animate"; source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.swallow.event";
+ }
+ program {
+ signal: "elm,action,hide,no_animate"; source: "elm";
+ script {
+ if (get_int(is_rtl) == 0)
+ set_state(PART:"icn", "hidden", 0.0);
+ else
+ set_state(PART:"icn", "default", 0.0);
+ }
+ }
+ program { name: "hide1_no_animate";
+ signal: "elm,action,hide,no_animate"; source: "elm";
+ script {
+ new x, y, w, h;
+ if (get_int(is_rtl) == 0)
+ {
+ custom_state(PART:"base", "default", 0.0);
+ set_state_val(PART:"base", STATE_REL1, -1.0, 0.0);
+ get_geometry(PART:"elm.swallow.event", x, y, w, h);
+ set_state_val(PART:"base", STATE_REL1_OFFSET, w, 0);
+ }
+ else
+ {
+ custom_state(PART:"base", "default", 0.0);
+ set_state_val(PART:"base", STATE_REL1, -1.0, 0.0);
+ set_state_val(PART:"base", STATE_REL2, -2.0, 1.0);
+ get_geometry(PART:"elm.swallow.event", x, y, w, h);
+ set_state_val(PART:"base", STATE_REL2_OFFSET, -w, 0);
+ }
+ }
+ after: "hide2_no_animate";
+ }
+ program { name: "hide2_no_animate";
+ action: STATE_SET "custom" 0.0;
+ target: "base";
+ }
+ program {
signal: "elm,action,focus_highlight,show"; source: "elm";
action: STATE_SET "focused" 0.0;
transition: ACCELERATE 0.2;