mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-27 09:00:55 +00:00
窗口沉浸式能力增强:补充设置状态栏标志位
Signed-off-by: zhangminrui <zhangminrui1@huawei.com>
This commit is contained in:
parent
37946d3974
commit
ba01aa8451
@ -238,7 +238,7 @@ enum class SystemBarSettingFlag : uint32_t {
|
||||
COLOR_SETTING = 1,
|
||||
ENABLE_SETTING = 1 << 1,
|
||||
ALL_SETTING = 0b11
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Used to map from WMError to WmErrorCode.
|
||||
|
@ -838,13 +838,13 @@ static void UpdateSystemBarProperties(std::map<WindowType, SystemBarProperty>& s
|
||||
}
|
||||
if (flag.enableFlag == true) {
|
||||
systemBarProperties[type].settingFlag_ =
|
||||
static_cast<SystemBarSettingFlag>(static_cast<uint32_t>(property.settingFlag_)) |
|
||||
static_cast<SystemBarSettingFlag>(SystemBarSettingFlag::ENABLE_SETTING);
|
||||
static_cast<SystemBarSettingFlag>(static_cast<uint32_t>(property.settingFlag_) |
|
||||
static_cast<uint32_t>(SystemBarSettingFlag::ENABLE_SETTING));
|
||||
}
|
||||
if (flag.backgroundColorFlag == true || flag.contentColorFlag == true) {
|
||||
systemBarProperties[type].settingFlag_ =
|
||||
static_cast<SystemBarSettingFlag>(static_cast<uint32_t>(property.settingFlag_)) |
|
||||
static_cast<SystemBarSettingFlag>(SystemBarSettingFlag::COLOR_SETTING);
|
||||
static_cast<SystemBarSettingFlag>(static_cast<uint32_t>(property.settingFlag_) |
|
||||
static_cast<uint32_t>(SystemBarSettingFlag::COLOR_SETTING));
|
||||
}
|
||||
WLOGI("[NAPI]SystemBarProperty type:%{public}u enable:%{public}u bgColor:%{public}x settingFlag:%{public}u",
|
||||
type, systemBarProperties[type].enable_, systemBarProperties[type].backgroundColor_,
|
||||
|
@ -215,7 +215,7 @@ enum class SystemBarSettingFlag : uint32_t {
|
||||
COLOR_SETTING = 1,
|
||||
ENABLE_SETTING = 1 << 1,
|
||||
ALL_SETTING = 0b11
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Used to map from WMError to WmErrorCode.
|
||||
|
Loading…
Reference in New Issue
Block a user