From e12b3d1e2ed9aec83206e6e6213c5956cbaedb81 Mon Sep 17 00:00:00 2001 From: lizheng Date: Tue, 21 Dec 2021 21:12:04 +0800 Subject: [PATCH] add window type Change-Id: I1ed9d4e2408990f4d8f969c55996c84d0689932d Signed-off-by: lizheng --- default.scss | 37 +++++++++++++++++++++++ interfaces/innerkits/wmclient/wm_common.h | 4 +++ 2 files changed, 41 insertions(+) diff --git a/default.scss b/default.scss index f5fc9e3001..b824eff2c7 100644 --- a/default.scss +++ b/default.scss @@ -282,3 +282,40 @@ width: 1%; height: 1%; } + +#WINDOW_TYPE_APPLICATION_BASE { + z-index: 1; + position: relative; + horizon-align: middle; + vertical-align: middle; + width: 100%; + height: 100%; +} + +#WINDOW_TYPE_APPLICATION_FIRST { + z-index: 2; + position: relative; + horizon-align: middle; + vertical-align: middle; + width: 100%; + height: 100%; +} + +#WINDOW_TYPE_APPLICATION_NORMAL { + z-index: 3; + position: relative; + horizon-align: middle; + vertical-align: middle; + width: 100%; + height: 100%; +} + +//This Window is Toppest +#WINDOW_TYPE_TOP { + z-index: 9999; + position: fixed; + horizon-align: middle; + vertical-align: middle; + width: 100%; + height: 100%; +} diff --git a/interfaces/innerkits/wmclient/wm_common.h b/interfaces/innerkits/wmclient/wm_common.h index 0761b7c2c4..fbe737deb5 100644 --- a/interfaces/innerkits/wmclient/wm_common.h +++ b/interfaces/innerkits/wmclient/wm_common.h @@ -57,6 +57,10 @@ namespace OHOS { macro(WINDOW_TYPE_SPLIT_LINE), \ macro(WINDOW_TYPE_LAUNCH_PAGE), \ macro(WINDOW_TYPE_CURSOR), \ + macro(WINDOW_TYPE_APPLICATION_BASE), \ + macro(WINDOW_TYPE_APPLICATION_FIRST), \ + macro(WINDOW_TYPE_APPLICATION_NORMAL), \ + macro(WINDOW_TYPE_TOP), \ macro(WINDOW_TYPE_MAX), #define DEFINE_ENUM_WINDOW_TYPE(id) id