summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinYong Park <j4939.park@samsung.com>2017-06-21 10:29:10 (GMT)
committerJin Yong Park <j4939.park@samsung.com>2017-06-21 10:33:20 (GMT)
commit3198bd166d246d368520ca1239ce560cab289e65 (patch)
tree2c62a7087120c3d0af9681e14a69b2e68f241bff
parente6406fe905b892284ca06e6afa267957fa30e11e (diff)
downloadefl-theme-tizen-mobile-3198bd166d246d368520ca1239ce560cab289e65.zip
efl-theme-tizen-mobile-3198bd166d246d368520ca1239ce560cab289e65.tar.gz
efl-theme-tizen-mobile-3198bd166d246d368520ca1239ce560cab289e65.tar.bz2
popup: support multiscale problem on TM2refs/changes/46/135246/2
This commit need elementary commit I7609002c9f81c2d2f32e79a645934efbecb43b37 https://review.tizen.org/gerrit/135247 Change-Id: Ifb16b5131821ab996a33845ea33aacff5aaffe4b Signed-off-by: Jinyong Park <j4939.park@samsung.com>
-rw-r--r--mobile/HD-inc.edc2
-rw-r--r--mobile/widgets/popup.edc83
2 files changed, 83 insertions, 2 deletions
diff --git a/mobile/HD-inc.edc b/mobile/HD-inc.edc
index 7576949..911d685 100644
--- a/mobile/HD-inc.edc
+++ b/mobile/HD-inc.edc
@@ -717,7 +717,7 @@
#define POPUP_CONTENT_AREA_LANDSCAPE_WIDTH_INC "720"
#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC 660 0
-#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC 720 -1
+#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC -1 -1
#define POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MIN_INC 660 0
#define POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MAX_INC 720 -1
#define POPUP_BASE_DEFAULT_TITLE_DEFAULT_MIN_INC 0 110
diff --git a/mobile/widgets/popup.edc b/mobile/widgets/popup.edc
index 1124558..6d71f85 100644
--- a/mobile/widgets/popup.edc
+++ b/mobile/widgets/popup.edc
@@ -57,6 +57,26 @@ group { "elm/notify/event/default";
source: "elm";
after: "on_hide";
}
+ program { "orient_90";
+ signal: "elm,state,orient,90";
+ source: "elm";
+ after: "on_orient_90";
+ }
+ program { "orient_270";
+ signal: "elm,state,orient,270";
+ source: "elm";
+ after: "on_orient_270";
+ }
+ program { "orient_0";
+ signal: "elm,state,orient,0";
+ source: "elm";
+ after: "on_orient_0";
+ }
+ program { "orient_180";
+ signal: "elm,state,orient,180";
+ source: "elm";
+ after: "on_orient_180";
+ }
}
}
@@ -282,6 +302,14 @@ group { "elm/notify/popup/template";
/* Program for hide animation */
program { "on_hide";
}
+ program { "on_orient_90";
+ }
+ program { "on_orient_270";
+ }
+ program { "on_orient_0";
+ }
+ program { "on_orient_180";
+ }
}
}
@@ -569,6 +597,15 @@ group { "elm/notify/bottom/popup/default";
program { "hide_finished";
action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
}
+
+ program { "on_orient_90";
+ }
+ program { "on_orient_270";
+ }
+ program { "on_orient_0";
+ }
+ program { "on_orient_180";
+ }
}
}
@@ -652,6 +689,15 @@ group { "elm/notify/center/popup/default";
program { "on_hide";
action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
}
+
+ program { "on_orient_90";
+ }
+ program { "on_orient_270";
+ }
+ program { "on_orient_0";
+ }
+ program { "on_orient_180";
+ }
}
}
@@ -704,9 +750,35 @@ group { "elm/notify/"direction"/popup/theme_bg"; \
scale; \
clip: "clipper"; \
desc { "default"; \
- max: NOTIFY_THEME_BG_CLIP_MAX_INC; \
rel.to: "elm.swallow.content"; \
} \
+ desc { "landscape"; \
+ inherit: "default"; \
+ max: NOTIFY_THEME_BG_CLIP_MAX_INC; \
+ } \
+ } \
+ } \
+\
+ programs { \
+ program { "on_orient_90"; \
+ after: "landscape_mode"; \
+ } \
+ program { "on_orient_270"; \
+ after: "landscape_mode"; \
+ } \
+ program { "on_orient_0"; \
+ after: "portrait_mode"; \
+ } \
+ program { "on_orient_180"; \
+ after: "portrait_mode"; \
+ } \
+ program { "landscape_mode"; \
+ action: STATE_SET "landscape" 0.0; \
+ target: "clip"; \
+ } \
+ program { "portrait_mode"; \
+ action: STATE_SET "default" 0.0; \
+ target: "clip"; \
} \
} \
}
@@ -760,6 +832,15 @@ group { "elm/notify/center/popup/toast";
program { "hide_finished";
action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
}
+
+ program { "on_orient_90";
+ }
+ program { "on_orient_270";
+ }
+ program { "on_orient_0";
+ }
+ program { "on_orient_180";
+ }
}
}