|
@@ -206,6 +206,7 @@ export struct LocalMusic {
|
|
|
@StorageProp('windowWidth') windowWidth: number = 0;
|
|
@StorageProp('windowWidth') windowWidth: number = 0;
|
|
|
@StorageProp('windowHeight') windowHeight: number = 0;
|
|
@StorageProp('windowHeight') windowHeight: number = 0;
|
|
|
@StorageProp('isHiCarStatus') isHiCarStatus: boolean = false;
|
|
@StorageProp('isHiCarStatus') isHiCarStatus: boolean = false;
|
|
|
|
|
+ private UNKONWN:string = '';
|
|
|
private listArea: Area = {
|
|
private listArea: Area = {
|
|
|
width: 0,
|
|
width: 0,
|
|
|
height: 0,
|
|
height: 0,
|
|
@@ -448,6 +449,7 @@ export struct LocalMusic {
|
|
|
// 组件生命周期
|
|
// 组件生命周期
|
|
|
aboutToAppear() {
|
|
aboutToAppear() {
|
|
|
this.initSetting()
|
|
this.initSetting()
|
|
|
|
|
+ this.UNKONWN = Utility.resourceToString(this.context, $r('app.string.unknown'));
|
|
|
this.topRectHeight = px2vp(AppUtil.getStatusBarHeight());
|
|
this.topRectHeight = px2vp(AppUtil.getStatusBarHeight());
|
|
|
Utility.getAppName(getContext(this)).then((appName: string) => {
|
|
Utility.getAppName(getContext(this)).then((appName: string) => {
|
|
|
this.appName = appName
|
|
this.appName = appName
|
|
@@ -2820,7 +2822,8 @@ export struct LocalMusic {
|
|
|
.padding({ top: 8 })
|
|
.padding({ top: 8 })
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
.visibility(StrUtil.isEmpty(this.videoLocalList[0].genre)||
|
|
.visibility(StrUtil.isEmpty(this.videoLocalList[0].genre)||
|
|
|
- this.videoLocalList[0].genre.includes('unknown')?Visibility.None:Visibility.Visible)
|
|
|
|
|
|
|
+ this.videoLocalList[0].genre.includes(this.UNKONWN)
|
|
|
|
|
+ ?Visibility.None:Visibility.Visible)
|
|
|
.fontWeight(FontWeight.Bold)
|
|
.fontWeight(FontWeight.Bold)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
.margin({ left: this.currentLyricAlignMode === 0 ? 18 : 0 })
|
|
.margin({ left: this.currentLyricAlignMode === 0 ? 18 : 0 })
|
|
@@ -2831,7 +2834,8 @@ export struct LocalMusic {
|
|
|
.padding({ top: 8 })
|
|
.padding({ top: 8 })
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
.visibility(StrUtil.isEmpty(this.videoLocalList[0].year)||
|
|
.visibility(StrUtil.isEmpty(this.videoLocalList[0].year)||
|
|
|
- this.videoLocalList[0].year.includes('unknown')?Visibility.None:Visibility.Visible)
|
|
|
|
|
|
|
+ this.videoLocalList[0].year.includes(this.UNKONWN)
|
|
|
|
|
+ ?Visibility.None:Visibility.Visible)
|
|
|
.fontWeight(FontWeight.Bold)
|
|
.fontWeight(FontWeight.Bold)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
.margin({ left: this.currentLyricAlignMode === 0 ? 18 : 0 })
|
|
.margin({ left: this.currentLyricAlignMode === 0 ? 18 : 0 })
|
|
@@ -6118,7 +6122,11 @@ export struct LocalMusic {
|
|
|
.backgroundBrightness({ rate: this.isPuraWP() ? 0.1 : 0, lightUpDegree: -0.1 })
|
|
.backgroundBrightness({ rate: this.isPuraWP() ? 0.1 : 0, lightUpDegree: -0.1 })
|
|
|
.expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM])
|
|
.expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM])
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
- this.startAutoHide()
|
|
|
|
|
|
|
+ // this.startAutoHide()
|
|
|
|
|
+ this.is_auto_hide_progress = false
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.is_auto_hide_progress = true
|
|
|
|
|
+ }, 6000)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -6163,7 +6171,7 @@ export struct LocalMusic {
|
|
|
private positionX: number = PlayConstants.POSITION_X;
|
|
private positionX: number = PlayConstants.POSITION_X;
|
|
|
private positionY: number = PlayConstants.POSITION_Y;
|
|
private positionY: number = PlayConstants.POSITION_Y;
|
|
|
private windowClass: window.Window = globalThis.windowClass
|
|
private windowClass: window.Window = globalThis.windowClass
|
|
|
- @State volume: number = 0.5;
|
|
|
|
|
|
|
+ @State volume: number = 0.3;
|
|
|
@State volumeShow: boolean = PlayConstants.VOLUME_SHOW;
|
|
@State volumeShow: boolean = PlayConstants.VOLUME_SHOW;
|
|
|
@State bright: number = PlayConstants.BRIGHT;
|
|
@State bright: number = PlayConstants.BRIGHT;
|
|
|
@State brightShow: boolean = PlayConstants.BRIGHT_SHOW;
|
|
@State brightShow: boolean = PlayConstants.BRIGHT_SHOW;
|
|
@@ -7070,13 +7078,13 @@ export struct LocalMusic {
|
|
|
style: SliderStyle.OutSet
|
|
style: SliderStyle.OutSet
|
|
|
})
|
|
})
|
|
|
.width('600px')
|
|
.width('600px')
|
|
|
- .blockColor(Color.White)
|
|
|
|
|
- .trackColor($r('app.color.track_color'))
|
|
|
|
|
|
|
+ .blockColor('rgba(255,255,255,1)')
|
|
|
|
|
+ .trackColor('rgba(255,255,255,0.3)')
|
|
|
.selectedColor(Color.White)
|
|
.selectedColor(Color.White)
|
|
|
.trackThickness(PlayConstants.PROGRESS_TRACK_THICKNESS)
|
|
.trackThickness(PlayConstants.PROGRESS_TRACK_THICKNESS)
|
|
|
.layoutWeight(1)
|
|
.layoutWeight(1)
|
|
|
.margin({ left: PlayConstants.PROGRESS_MARGIN_LEFT })
|
|
.margin({ left: PlayConstants.PROGRESS_MARGIN_LEFT })
|
|
|
- .showSteps(true)
|
|
|
|
|
|
|
+ .showSteps(false)
|
|
|
.showTips(true)
|
|
.showTips(true)
|
|
|
.enabled(this.slideEnable)
|
|
.enabled(this.slideEnable)
|
|
|
.onChange((value: number, mode: SliderChangeMode) => {
|
|
.onChange((value: number, mode: SliderChangeMode) => {
|