Explorar o código

调整下播放页布局

onecold hai 1 ano
pai
achega
c4c9accc6e
Modificáronse 1 ficheiros con 8 adicións e 8 borrados
  1. 8 8
      entry/src/main/ets/view/LocalMusic.ets

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

@@ -5872,8 +5872,8 @@ export struct LocalMusic {
       Stack() {
 
         Image(StrUtil.isEmpty(this.cover) ? this.imageLabel : this.cover)
-          .height(39)
-          .width(39)
+          .height(55)
+          .width(55)
           .alt(this.imageLabel)
           .borderRadius(8)
           .clickEffect({level:ClickEffectLevel.HEAVY})
@@ -5885,14 +5885,14 @@ export struct LocalMusic {
       Column() {
         Column() {
           Text(this.name)
-            .fontSize(14)
+            .fontSize(16)
             .maxLines(1)
             .fontWeight(FontWeight.Bolder)
             .fontColor(this.currentLyricColor)
             .margin({ left: this.currentLyricAlignMode === 0 ? 18 : 0 })
           Row() {
             Text(this.currentSong?.artist !== undefined ? this.currentSong?.artist : '')
-              .fontSize(10)
+              .fontSize(12)
               .fontWeight(FontWeight.Bold)
               .padding({ top: 8 })
               .fontColor(this.currentLyricColor)
@@ -5914,7 +5914,7 @@ export struct LocalMusic {
       Column() {
 
         Image($r('app.media.lyric'))
-          .width(25)
+          .width(28)
           .aspectRatio(CommonConstants.ASPECT_RATIO)
           .margin({ right: 30 })
           .clickEffect({level:ClickEffectLevel.HEAVY})
@@ -6241,7 +6241,7 @@ export struct LocalMusic {
           .width('60%')
           .maxLines(1)
       }
-      .margin({ top: this.isCoverOpacity() ? 20 : 66 })
+      .margin({ top: this.isCoverOpacity() ? 20 : 30 })
       .justifyContent(FlexAlign.Center)
       .zIndex(1)
       .visibility(this.isCoverOpacity() ? Visibility.None : Visibility.Visible)
@@ -6277,7 +6277,7 @@ export struct LocalMusic {
           .height(this.isCoverOpacity() ? 250 : this.isCoverRectangle ? 300 : 162)
           .objectFit(this.isCoverRectangle ? ImageFit.Contain : ImageFit.Auto)
           .alt(this.imageLabel)
-          .margin({ right: 30, left: 30, top: this.isCoverOpacity() || this.isCoverRectangle ? 0 : 10 })
+          .margin({ right: 20, left: 20 })
           .aspectRatio(1)
           .visibility(this.isPuraWP()?Visibility.None:Visibility.Visible)
           .borderRadius(this.isCoverRectangle ? 20 : '100%')
@@ -6329,7 +6329,7 @@ export struct LocalMusic {
 
       .margin({
         bottom: this.isCoverOpacity() || this.isCoverRectangle ? 55 : 0,
-        top: this.isCoverOpacity() ? 0 : this.isCoverRectangle ? 40 : 30
+        top: this.isCoverOpacity() ? 0 : 20
       })
 
       this.BottomControl()