From: SnickerSun Date: Mon, 26 Aug 2024 11:46:37 +0000 (+0800) Subject: 添加勿扰图标 X-Git-Tag: release_V1.2.70_20241020_135402~583^2~1^2~3 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=76455525c98b1a0b1b551d08d40441a98afa1eca;p=mirrors%2FFD230.git 添加勿扰图标 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/dnotdisturb/src/DnotDisturbView.cpp b/code/sdk/application/wearable/fd230app/nativeui/dnotdisturb/src/DnotDisturbView.cpp index ef60f68c2..a0cd8b8d7 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/dnotdisturb/src/DnotDisturbView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/dnotdisturb/src/DnotDisturbView.cpp @@ -17,7 +17,6 @@ namespace OHOS { - static constexpr const char *DROPDOWN_DNOTDISTURB_IMAGE = "/user/res/dropdown/DROPDOWN_DNOTDISTURB.bin"; static DnotDisturbView *g_pDnotDisturbView{nullptr}; DnotDisturbView::DnotDisturbView() @@ -124,8 +123,8 @@ namespace OHOS DnotDisturbImage->SetStyle(STYLE_BACKGROUND_OPA, 0xff); DnotDisturbImage->SetStyle(STYLE_BORDER_RADIUS, 100); DnotDisturbImage->SetAutoEnable(false); - DnotDisturbImage->SetResizeMode(UIImageView::CENTER); - DnotDisturbImage->SetSrc(DROPDOWN_DNOTDISTURB_IMAGE); + DnotDisturbImage->SetResizeMode(UIImageView::FILL); + DnotDisturbImage->SetSrc(PNG_APPLIST_DISTURB_IMAGE); /* -------------------------------------------------------------------------- */ AttentionLabel = new UILabelExt(); if (AttentionLabel == nullptr)