添加勿扰图标
authorSnickerSun <snickersun@163.com>
Mon, 26 Aug 2024 11:46:37 +0000 (19:46 +0800)
committerSnickerSun <snickersun@163.com>
Mon, 26 Aug 2024 11:46:37 +0000 (19:46 +0800)
code/sdk/application/wearable/fd230app/nativeui/dnotdisturb/src/DnotDisturbView.cpp

index ef60f68..a0cd8b8 100644 (file)
@@ -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)