Просмотр исходного кода

更新下控制台的图片资源

onecold 8 месяцев назад
Родитель
Сommit
ada77c350e

+ 4 - 5
entry/src/main/ets/pages/PlaylistDetailPage.ets

@@ -1493,11 +1493,10 @@ export function emptyView(themeColor: string, isDarkMode: boolean = false) {
         .fill(themeColorWithAlpha(themeColor, 0.13, isDarkMode))
 
       // 音符图标
-      Image($r('app.media.alt'))
-        .width(64)
-        .height(64)
-        .opacity(0.6)
-        .fillColor(themeColor)
+      SymbolGlyph($r('sys.symbol.music_fill'))
+        .fontSize(48)
+        .opacity(0.5)
+        .fontColor([themeColor])
     }
     .margin({ bottom: 32 })
 

+ 4 - 4
entry/src/main/ets/view/NavidromePage.ets

@@ -1571,10 +1571,9 @@ export struct NavidromePage {
       // 空状态
       if (this.getCurrentCount() === 0 && !(this.selectedTab === 0 && this.filterType !== NavFilterType.None && this.isFilterLoading) && !(this.isSearchMode && this.searchText.length > 0 && this.isSearchLoading)) {
         Column() {
-          Image($r('app.media.alt'))
-            .width(80)
-            .height(80)
-            .opacity(0.6)
+          SymbolGlyph($r('sys.symbol.music_fill'))
+            .fontSize(50)
+            .opacity(0.3)
 
           Text(this.getEmptyTitle())
             .margin({ top: 16 })
@@ -1588,6 +1587,7 @@ export struct NavidromePage {
         }
         .width('100%')
         .layoutWeight(1)
+        .margin({ bottom: 180 })
         .justifyContent(FlexAlign.Center)
       }
     }