|
@@ -573,7 +573,7 @@ export struct LocalMusic {
|
|
|
this.isShowAllBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_ALLBAR, true)
|
|
this.isShowAllBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_ALLBAR, true)
|
|
|
this.twoFingerType = PreferencesUtil.getNumberSync(SettingPage.TWO_FINGER_TYPE, 3)
|
|
this.twoFingerType = PreferencesUtil.getNumberSync(SettingPage.TWO_FINGER_TYPE, 3)
|
|
|
this.isCoverTop = PreferencesUtil.getBooleanSync(SettingPage.IS_COVER_TOP, false)
|
|
this.isCoverTop = PreferencesUtil.getBooleanSync(SettingPage.IS_COVER_TOP, false)
|
|
|
- this.isCircleBtn = PreferencesUtil.getBooleanSync(SettingPage.IS_CIRCLE_BTN, false)
|
|
|
|
|
|
|
+ this.isCircleBtn = PreferencesUtil.getBooleanSync(SettingPage.IS_CIRCLE_BTN, true)
|
|
|
this.isShowPlayPageBack = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_PLAYPAGE_BACK, false)
|
|
this.isShowPlayPageBack = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_PLAYPAGE_BACK, false)
|
|
|
this.isCoverTopBig = PreferencesUtil.getBooleanSync(SettingPage.IS_COVER_TOP_BIG, false)
|
|
this.isCoverTopBig = PreferencesUtil.getBooleanSync(SettingPage.IS_COVER_TOP_BIG, false)
|
|
|
this.isShowSingleLineLyric = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_SLLYRIC, false)
|
|
this.isShowSingleLineLyric = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_SLLYRIC, false)
|
|
@@ -2588,8 +2588,8 @@ export struct LocalMusic {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
.layoutWeight(1)
|
|
.layoutWeight(1)
|
|
|
- .margin({ left: this.currentBreakpoint !== BreakpointTypeEnum.SM?30:5,
|
|
|
|
|
- right: this.currentBreakpoint !== BreakpointTypeEnum.SM?30:5, bottom: 1 });
|
|
|
|
|
|
|
+ .margin({ left: this.currentBreakpoint !== BreakpointTypeEnum.SM?20:5,
|
|
|
|
|
+ right: this.currentBreakpoint !== BreakpointTypeEnum.SM?20:5, bottom: 1 });
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
.width('100%')
|
|
.width('100%')
|
|
@@ -3155,7 +3155,7 @@ export struct LocalMusic {
|
|
|
.cachedCount(3)
|
|
.cachedCount(3)
|
|
|
// .columnsTemplate('1fr '.repeat(this.currentWidthBreakpoint === WidthBreakpoint.WIDTH_SM ? 2 : 5))
|
|
// .columnsTemplate('1fr '.repeat(this.currentWidthBreakpoint === WidthBreakpoint.WIDTH_SM ? 2 : 5))
|
|
|
.columnsTemplate(this.twoFingerType==3?'repeat(auto-fit, 160)':this.twoFingerType==2?'repeat(auto-fit, 110)':'repeat(auto-fit, 80)')
|
|
.columnsTemplate(this.twoFingerType==3?'repeat(auto-fit, 160)':this.twoFingerType==2?'repeat(auto-fit, 110)':'repeat(auto-fit, 80)')
|
|
|
- .rowsGap(this.twoFingerType==3?10:this.twoFingerType==2?5:1)
|
|
|
|
|
|
|
+ .rowsGap(this.isShowDrawer?25:(this.twoFingerType==3?10:this.twoFingerType==2?5:1))
|
|
|
.visibility(this.isGridMusic?Visibility.Visible:Visibility.None)
|
|
.visibility(this.isGridMusic?Visibility.Visible:Visibility.None)
|
|
|
.scale({x:this.scaleValue,y:this.scaleValue,z:1})
|
|
.scale({x:this.scaleValue,y:this.scaleValue,z:1})
|
|
|
.gesture(PinchGesture({ fingers: 2 })
|
|
.gesture(PinchGesture({ fingers: 2 })
|
|
@@ -6070,7 +6070,7 @@ export struct LocalMusic {
|
|
|
Column() {
|
|
Column() {
|
|
|
this.playCenterView()
|
|
this.playCenterView()
|
|
|
}
|
|
}
|
|
|
- .margin({bottom:20,right:this.currentLyricAlignMode == 0?0:80})
|
|
|
|
|
|
|
+ .margin({bottom:20,right:this.currentLyricAlignMode == 0?0:30})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.position({
|
|
.position({
|
|
@@ -6122,7 +6122,7 @@ export struct LocalMusic {
|
|
|
@Builder
|
|
@Builder
|
|
|
playCenterView(){
|
|
playCenterView(){
|
|
|
Row() {
|
|
Row() {
|
|
|
- Row({ space: 33 }) {
|
|
|
|
|
|
|
+ Row({ space: 20 }) {
|
|
|
|
|
|
|
|
|
|
|
|
|
Button({type:ButtonType.Circle,stateEffect:true}){
|
|
Button({type:ButtonType.Circle,stateEffect:true}){
|
|
@@ -6155,9 +6155,10 @@ export struct LocalMusic {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
.backgroundColor(Color.Transparent)
|
|
.backgroundColor(Color.Transparent)
|
|
|
|
|
+ .margin({ left: 5 })
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- // .margin({ left: 20 })
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Button({type:ButtonType.Circle,stateEffect:true}){
|
|
Button({type:ButtonType.Circle,stateEffect:true}){
|
|
|
Column() {
|
|
Column() {
|
|
@@ -6178,10 +6179,10 @@ export struct LocalMusic {
|
|
|
}
|
|
}
|
|
|
.backgroundColor(Color.Transparent)
|
|
.backgroundColor(Color.Transparent)
|
|
|
.layoutWeight(1)
|
|
.layoutWeight(1)
|
|
|
- .margin({ left: 33, right: 33 })
|
|
|
|
|
|
|
+ .margin({ left: 38, right: 38 })
|
|
|
|
|
|
|
|
|
|
|
|
|
- Row({ space: 33 }) {
|
|
|
|
|
|
|
+ Row({ space: 20 }) {
|
|
|
Button({ type: ButtonType.Capsule, stateEffect: true }) {
|
|
Button({ type: ButtonType.Capsule, stateEffect: true }) {
|
|
|
Image($r('app.media.ic_next'))
|
|
Image($r('app.media.ic_next'))
|
|
|
.width(33)
|
|
.width(33)
|
|
@@ -6194,6 +6195,7 @@ export struct LocalMusic {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
.backgroundColor(Color.Transparent)
|
|
.backgroundColor(Color.Transparent)
|
|
|
|
|
+ .margin({ right: 5 })
|
|
|
.width(33)
|
|
.width(33)
|
|
|
|
|
|
|
|
Button({type:ButtonType.Circle,stateEffect:true}){
|
|
Button({type:ButtonType.Circle,stateEffect:true}){
|
|
@@ -6213,7 +6215,7 @@ export struct LocalMusic {
|
|
|
.width(24)
|
|
.width(24)
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- // .margin({ right: 33 })
|
|
|
|
|
|
|
+ // .margin({ left: 5 })
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
.width('100%')
|
|
.width('100%')
|
|
@@ -6298,9 +6300,9 @@ export struct LocalMusic {
|
|
|
|
|
|
|
|
//播放列表
|
|
//播放列表
|
|
|
Button({type:ButtonType.Circle,stateEffect:true}){
|
|
Button({type:ButtonType.Circle,stateEffect:true}){
|
|
|
- Image($r('app.media.playlist'))
|
|
|
|
|
|
|
+ Image($r('app.media.hm_playlist'))
|
|
|
.width($r('app.float.control_image_width'))
|
|
.width($r('app.float.control_image_width'))
|
|
|
-
|
|
|
|
|
|
|
+ .fillColor(Color.White)
|
|
|
.aspectRatio(CommonConstants.ASPECT_RATIO)
|
|
.aspectRatio(CommonConstants.ASPECT_RATIO)
|
|
|
.bindSheet($$this.isShowSheetView, this.PlayListSheet(), {
|
|
.bindSheet($$this.isShowSheetView, this.PlayListSheet(), {
|
|
|
height: '95%',
|
|
height: '95%',
|
|
@@ -6326,7 +6328,9 @@ export struct LocalMusic {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- .width(PlayConstants.PROGRESS_ROW_WIDTH)
|
|
|
|
|
|
|
+ //x5的竖屏模式需要99%
|
|
|
|
|
+ .width(this.isPhonePortrait()?'93.4%'
|
|
|
|
|
+ :this.currentHeightBreakpoint==1&&this.currentWidthBreakpoint==2?'99%':'85%')
|
|
|
.height(this.isPhoneLan()?25:33)
|
|
.height(this.isPhoneLan()?25:33)
|
|
|
// .visibility(this.isPhoneLan()&&this.isAutoHide?Visibility.None:Visibility.Visible)
|
|
// .visibility(this.isPhoneLan()&&this.isAutoHide?Visibility.None:Visibility.Visible)
|
|
|
.animation({
|
|
.animation({
|
|
@@ -6442,6 +6446,19 @@ export struct LocalMusic {
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
this.getImageColor()
|
|
this.getImageColor()
|
|
|
})
|
|
})
|
|
|
|
|
+ if(this.isPhoneLan()){
|
|
|
|
|
+ Text(this.name)
|
|
|
|
|
+ .fontSize(18)
|
|
|
|
|
+ .fontWeight(FontWeight.Bold)
|
|
|
|
|
+ .margin({top:13})
|
|
|
|
|
+ .textOverflow({ overflow: TextOverflow.Ellipsis })
|
|
|
|
|
+ .maxLines(1)
|
|
|
|
|
+ .width('99%')
|
|
|
|
|
+ .textAlign(TextAlign.Center)
|
|
|
|
|
+ .fontColor(Color.White)
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -6490,25 +6507,10 @@ export struct LocalMusic {
|
|
|
}
|
|
}
|
|
|
if(this.isPhoneLan()){
|
|
if(this.isPhoneLan()){
|
|
|
Column(){
|
|
Column(){
|
|
|
- Text(this.name)
|
|
|
|
|
- .fontSize(18)
|
|
|
|
|
- .fontWeight(FontWeight.Bold)
|
|
|
|
|
- .textOverflow({ overflow: TextOverflow.Ellipsis })
|
|
|
|
|
- .maxLines(1)
|
|
|
|
|
- .width('99%')
|
|
|
|
|
- .textAlign(TextAlign.Center)
|
|
|
|
|
- .fontColor(Color.White)
|
|
|
|
|
- Text(this.artist + ' ' + this.currentSong?.album)
|
|
|
|
|
- .fontSize(15)
|
|
|
|
|
- .visibility(Visibility.Hidden)
|
|
|
|
|
- .textOverflow({ overflow: TextOverflow.Ellipsis })
|
|
|
|
|
- .fontColor(Color.White)
|
|
|
|
|
- .textAlign(TextAlign.Center)
|
|
|
|
|
- .width('99%')
|
|
|
|
|
- .maxLines(1)
|
|
|
|
|
|
|
+
|
|
|
this.playProgressView()
|
|
this.playProgressView()
|
|
|
}
|
|
}
|
|
|
- .position({bottom:45})
|
|
|
|
|
|
|
+ .position({bottom:48})
|
|
|
|
|
|
|
|
}else{
|
|
}else{
|
|
|
this.BottomControl()
|
|
this.BottomControl()
|
|
@@ -6584,21 +6586,7 @@ export struct LocalMusic {
|
|
|
}
|
|
}
|
|
|
.visibility(this.isHide ? Visibility.Hidden : Visibility.None)
|
|
.visibility(this.isHide ? Visibility.Hidden : Visibility.None)
|
|
|
|
|
|
|
|
- //更多功能
|
|
|
|
|
- // Image( $r('app.media.two_point') )
|
|
|
|
|
- // .width(24)
|
|
|
|
|
- // .visibility(this.isHide?Visibility.None:Visibility.Visible)
|
|
|
|
|
- // .margin({left:13})
|
|
|
|
|
- // .bindSheet($$this.isShowMoreView, this.PlayMoreSheet(), {
|
|
|
|
|
- // height:this.isCoverOpacity()?'95%':'85%',
|
|
|
|
|
- // dragBar: true,
|
|
|
|
|
- // showClose: true,
|
|
|
|
|
- // blurStyle:BlurStyle.Thin,
|
|
|
|
|
- // backgroundColor:Color.Transparent,
|
|
|
|
|
- // })
|
|
|
|
|
- // .onClick(() => {
|
|
|
|
|
- // this.isShowMoreView = !this.isShowMoreView;
|
|
|
|
|
- // })
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
.width(PlayConstants.ROW_WIDTH)
|
|
.width(PlayConstants.ROW_WIDTH)
|
|
|
|
|
|