From 84a52e883044c8f37956fcc2b6c42cc6756f9176 Mon Sep 17 00:00:00 2001 From: humeng Date: Fri, 31 May 2024 11:51:49 +0800 Subject: [PATCH] =?UTF-8?q?menuBar=E9=A2=9C=E8=89=B2=E5=92=8C=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=A0=8F=E6=96=87=E6=9C=AC=E9=A2=9C=E8=89=B2=E4=BF=9D?= =?UTF-8?q?=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: humeng --- wm/src/window_scene_session_impl.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wm/src/window_scene_session_impl.cpp b/wm/src/window_scene_session_impl.cpp index 188ceb35fb..b8f483f536 100644 --- a/wm/src/window_scene_session_impl.cpp +++ b/wm/src/window_scene_session_impl.cpp @@ -1669,6 +1669,10 @@ WMError WindowSceneSessionImpl::NotifySpecificWindowSessionProperty(WindowType t } if (type == WindowType::WINDOW_TYPE_STATUS_BAR) { UpdateProperty(WSPropertyChangeAction::ACTION_UPDATE_STATUS_PROPS); + std::shared_ptr uiContent = GetUIContentSharedPtr(); + if (uiContent != nullptr) { + uiContent->SetStatusBarItemColor(property.contentColor_); + } } else if (type == WindowType::WINDOW_TYPE_NAVIGATION_BAR) { UpdateProperty(WSPropertyChangeAction::ACTION_UPDATE_NAVIGATION_PROPS); } else if (type == WindowType::WINDOW_TYPE_NAVIGATION_INDICATOR) { @@ -1686,7 +1690,8 @@ WMError WindowSceneSessionImpl::SetSpecificBarProperty(WindowType type, const Sy if (!((state_ > WindowState::STATE_INITIAL) && (state_ < WindowState::STATE_BOTTOM))) { TLOGE(WmsLogTag::WMS_IMMS, "windowId:%{public}u state is invalid", GetWindowId()); return WMError::WM_ERROR_INVALID_WINDOW; - } else if (GetSystemBarPropertyByType(type) == property) { + } else if (GetSystemBarPropertyByType(type) == property && + property.settingFlag_ == SystemBarSettingFlag::DEFAULT_SETTING) { setSameSystembarPropertyCnt_++; TLOGI(WmsLogTag::WMS_IMMS, "windowId:%{public}u %{public}s set same property %{public}u times, " "type:%{public}u, enable:%{public}u bgColor:%{public}x Color:%{public}x enableAnim:%{public}u", -- Gitee