|
@@ -177,6 +177,7 @@ export struct LocalMusic {
|
|
|
@State isStartAutoPlay: boolean = false //启动后自动播放
|
|
@State isStartAutoPlay: boolean = false //启动后自动播放
|
|
|
@State isShowPlayPageBack: boolean = false //是否显示播放页返回键
|
|
@State isShowPlayPageBack: boolean = false //是否显示播放页返回键
|
|
|
@State isShowHeader: boolean = true
|
|
@State isShowHeader: boolean = true
|
|
|
|
|
+ @State isPlayListBgGrass: boolean = true//是否播放列表玻璃透明效果
|
|
|
@State isShowSingleLineLyric: boolean = false //是否显示播放页返回键
|
|
@State isShowSingleLineLyric: boolean = false //是否显示播放页返回键
|
|
|
@State isMemoryLastPlay: boolean = false //是否启用应用退出记忆最后一首的播放进度
|
|
@State isMemoryLastPlay: boolean = false //是否启用应用退出记忆最后一首的播放进度
|
|
|
@State isCoverTopBig: boolean = false//顶部大封面部分手机显示会和播放控制页重叠
|
|
@State isCoverTopBig: boolean = false//顶部大封面部分手机显示会和播放控制页重叠
|
|
@@ -595,6 +596,7 @@ export struct LocalMusic {
|
|
|
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)
|
|
|
this.longPressSpeed = PreferencesUtil.getNumberSync(SettingPage.LONG_PRESS_SPEED, 3)
|
|
this.longPressSpeed = PreferencesUtil.getNumberSync(SettingPage.LONG_PRESS_SPEED, 3)
|
|
|
|
|
+ this.isPlayListBgGrass = PreferencesUtil.getBooleanSync(SettingPage.IS_PLAYLIST_BG_GRASS, true)
|
|
|
this.isShowHeader = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_HEADER, true)
|
|
this.isShowHeader = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_HEADER, true)
|
|
|
if (this.isSavePlayMode) {
|
|
if (this.isSavePlayMode) {
|
|
|
this.playType = PreferencesUtil.getNumberSync('musicPlayType', 0)
|
|
this.playType = PreferencesUtil.getNumberSync('musicPlayType', 0)
|
|
@@ -4331,7 +4333,7 @@ export struct LocalMusic {
|
|
|
showClose: true,
|
|
showClose: true,
|
|
|
blurStyle: BlurStyle.Thin,
|
|
blurStyle: BlurStyle.Thin,
|
|
|
preferType: this.currentBreakpoint !== BreakpointTypeEnum.SM ? SheetType.CENTER : SheetType.BOTTOM,
|
|
preferType: this.currentBreakpoint !== BreakpointTypeEnum.SM ? SheetType.CENTER : SheetType.BOTTOM,
|
|
|
- backgroundColor: Color.Transparent,
|
|
|
|
|
|
|
+ backgroundColor: this.isPlayListBgGrass?Color.Transparent:$r('app.color.silvery'),
|
|
|
title: {
|
|
title: {
|
|
|
title: Utility.resourceToString(this.context, $r('app.string.current_play_list'))
|
|
title: Utility.resourceToString(this.context, $r('app.string.current_play_list'))
|
|
|
+ `(${this.songList.length}首)`
|
|
+ `(${this.songList.length}首)`
|
|
@@ -6441,7 +6443,7 @@ export struct LocalMusic {
|
|
|
seekUIStyle: "listItem",// 滑动定位样式(seekLine传统样式,listItem类似抖音汽水音乐样式)
|
|
seekUIStyle: "listItem",// 滑动定位样式(seekLine传统样式,listItem类似抖音汽水音乐样式)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- .height(48)
|
|
|
|
|
|
|
+ .height(66)
|
|
|
.margin({bottom:20})
|
|
.margin({bottom:20})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -6664,7 +6666,7 @@ export struct LocalMusic {
|
|
|
showClose: true,
|
|
showClose: true,
|
|
|
preferType: this.currentBreakpoint !== BreakpointTypeEnum.SM ? SheetType.CENTER : SheetType.BOTTOM,
|
|
preferType: this.currentBreakpoint !== BreakpointTypeEnum.SM ? SheetType.CENTER : SheetType.BOTTOM,
|
|
|
blurStyle: BlurStyle.Thin,
|
|
blurStyle: BlurStyle.Thin,
|
|
|
- backgroundColor: Color.Transparent,
|
|
|
|
|
|
|
+ backgroundColor: this.isPlayListBgGrass?Color.Transparent:$r('app.color.silvery'),
|
|
|
title: {
|
|
title: {
|
|
|
title: Utility.resourceToString(this.context, $r('app.string.current_play_list'))
|
|
title: Utility.resourceToString(this.context, $r('app.string.current_play_list'))
|
|
|
+ `(${this.songList.length}首)`
|
|
+ `(${this.songList.length}首)`
|
|
@@ -6681,7 +6683,11 @@ export struct LocalMusic {
|
|
|
.clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
.clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
this.isShowSheetView = !this.isShowSheetView;
|
|
this.isShowSheetView = !this.isShowSheetView;
|
|
|
- this.isFrontWhite = true
|
|
|
|
|
|
|
+ if(this.isPlayListBgGrass){
|
|
|
|
|
+ this.isFrontWhite = true
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.isFrontWhite = false
|
|
|
|
|
+ }
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
this.playListScroller.scrollToIndex(this.curIndex,true, ScrollAlign.CENTER)
|
|
this.playListScroller.scrollToIndex(this.curIndex,true, ScrollAlign.CENTER)
|
|
|
}, 123)
|
|
}, 123)
|