浏览代码

list分割线颜色

onecold 1 年之前
父节点
当前提交
64adf1281d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      entry/src/main/ets/view/LocalMusic.ets

+ 1 - 1
entry/src/main/ets/view/LocalMusic.ets

@@ -2779,7 +2779,7 @@ export struct LocalMusic {
       }, (item: VideoItem) => item.filePath)
       }, (item: VideoItem) => item.filePath)
     }
     }
     .backgroundColor($r('app.color.index_background'))
     .backgroundColor($r('app.color.index_background'))
-    .divider({ strokeWidth: 1, color: '#ffe9f0f0' })
+    .divider({ strokeWidth: 1, color: this.isDarkMode? '#333333':'#ffe9f0f0' })
     .margin({ bottom: this.isPuraWP() ? 50 : 108 })
     .margin({ bottom: this.isPuraWP() ? 50 : 108 })
     .cachedCount(30)
     .cachedCount(30)
     .borderRadius(20)
     .borderRadius(20)