Răsfoiți Sursa

优化均衡器ui

onecold 6 luni în urmă
părinte
comite
a0721c14a1
1 a modificat fișierele cu 14 adăugiri și 14 ștergeri
  1. 14 14
      entry/src/main/ets/view/LocalMusic.ets

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

@@ -3186,15 +3186,7 @@ export struct LocalMusic {
             backgroundColor:Color.Transparent,
             title: { title: 'AB循环' }
           })
-          .bindSheet($$this.isEqualizerSheet, this.EqualizerSheet(), {
-            height: this.isLandscape ? '90%' : '65%',
-            dragBar: true,
-            showClose: true,
-            preferType: this.currentBreakpoint !== BreakpointTypeEnum.SM ? SheetType.CENTER : SheetType.BOTTOM,
-            blurStyle: BlurStyle.Thin,
-            backgroundColor: Color.Transparent,
-            title: { title: '均衡器' }
-          })
+
 
           Stack() {
 
@@ -3522,7 +3514,17 @@ export struct LocalMusic {
       .position({x:'92%'})
       .height('100%')
       .justifyContent(FlexAlign.Center)
-
+      .bindSheet($$this.isEqualizerSheet, this.EqualizerSheet(), {
+        height:  '100%',
+        dragBar: true,
+        showClose: true,
+        preferType: SheetType.CENTER ,
+        blurStyle: BlurStyle.Thin,
+        title: { title: '均衡器' },
+        onDisappear: () => {
+          this.isEqualizerSheet = false
+        }
+      })
   }
 
   async onSelectIndexItem(letter: string) {
@@ -10716,9 +10718,6 @@ export struct LocalMusic {
   @Builder
   BottomControl() {
     Column() {
-      if (!this.isPhoneLan() && !this.curDisplayIsHiCar) {
-        this.EqualizerQuickBar()
-      }
       this.TopPlayProgressView()
       //播放 暂停,下一首,上一首
       this.playCenterView()
@@ -12948,6 +12947,8 @@ export struct LocalMusic {
 
     { id: 2, image: $r('app.media.lyric'), title: '歌词' },
 
+    { id: 24, image: $r('app.media.equalizer'), title: '均衡器' },
+
     { id: 17, image: $r('app.media.full_4'), title: '横屏模式' },
 
     { id: 16, image: $r('app.media.hua_zhong_hua'), title: '悬浮歌词' },
@@ -12972,7 +12973,6 @@ export struct LocalMusic {
 
     { id: 9, image: $r('app.media.volume_white'), title: '调整音量' },
 
-    { id: 24, image: $r('app.media.volume_white'), title: '均衡器' },
 
     // { id: 6, image: $r('app.media.memory'), title: '记忆播放' },