|
@@ -2530,20 +2530,21 @@ export struct LocalMusic {
|
|
|
Text(item.name)
|
|
Text(item.name)
|
|
|
.fontSize(this.twoFingerType==1?12:this.twoFingerType==2?15:18)
|
|
.fontSize(this.twoFingerType==1?12:this.twoFingerType==2?15:18)
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
|
|
+ .textOverflow({ overflow: TextOverflow.MARQUEE })//超长滚动
|
|
|
.animation({
|
|
.animation({
|
|
|
duration: 555,
|
|
duration: 555,
|
|
|
curve: 'Linear',
|
|
curve: 'Linear',
|
|
|
})
|
|
})
|
|
|
.fontColor(this.currentSong?.filePath === item.filePath ? this.themeColor :
|
|
.fontColor(this.currentSong?.filePath === item.filePath ? this.themeColor :
|
|
|
$r('app.color.text_color'))
|
|
$r('app.color.text_color'))
|
|
|
- .margin({ left:this.twoFingerType==3?18: 10 })
|
|
|
|
|
|
|
+ .margin({ left:this.twoFingerType==3?6: 8 })
|
|
|
Row() {
|
|
Row() {
|
|
|
Text(StrUtil.isEmpty(item.artist) ? item.cTime : item.artist + ' ' + item?.album)
|
|
Text(StrUtil.isEmpty(item.artist) ? item.cTime : item.artist + ' ' + item?.album)
|
|
|
.fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
.fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
|
.padding({ top: 8 })
|
|
.padding({ top: 8 })
|
|
|
.fontColor(this.currentSong?.filePath === item.filePath ? this.themeColor :
|
|
.fontColor(this.currentSong?.filePath === item.filePath ? this.themeColor :
|
|
|
$r('app.color.text_color'))
|
|
$r('app.color.text_color'))
|
|
|
- .margin({ left:this.twoFingerType==3?18: 10})
|
|
|
|
|
|
|
+ .margin({ left:this.twoFingerType==3?6: 8})
|
|
|
Blank()
|
|
Blank()
|
|
|
Text(item.size)
|
|
Text(item.size)
|
|
|
.fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
.fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
@@ -2562,7 +2563,8 @@ export struct LocalMusic {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
.height('100%')
|
|
.height('100%')
|
|
|
- .width('65%')
|
|
|
|
|
|
|
+ .margin({ left: 5})
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
|
|
|
Column() {
|
|
Column() {
|
|
|
Checkbox({ name: 'checkbox' + index })
|
|
Checkbox({ name: 'checkbox' + index })
|
|
@@ -2587,12 +2589,13 @@ export struct LocalMusic {
|
|
|
.state(this.animationState)// 动画状态
|
|
.state(this.animationState)// 动画状态
|
|
|
.fillMode(FillMode.Forwards)
|
|
.fillMode(FillMode.Forwards)
|
|
|
.width(18)
|
|
.width(18)
|
|
|
|
|
+ .margin({ right: 20, top: 8, bottom: 8 })
|
|
|
.visibility(this.videoUrl === item.filePath ? this.isMultiSelect ? Visibility.None : Visibility.Visible :
|
|
.visibility(this.videoUrl === item.filePath ? this.isMultiSelect ? Visibility.None : Visibility.Visible :
|
|
|
Visibility.None)
|
|
Visibility.None)
|
|
|
.height(18)
|
|
.height(18)
|
|
|
.iterations(-1) // 播放次数
|
|
.iterations(-1) // 播放次数
|
|
|
}
|
|
}
|
|
|
- .width('18%')
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -4236,6 +4239,7 @@ export struct LocalMusic {
|
|
|
.alignItems(HorizontalAlign.Start)
|
|
.alignItems(HorizontalAlign.Start)
|
|
|
.margin({ right: 22 })
|
|
.margin({ right: 22 })
|
|
|
}
|
|
}
|
|
|
|
|
+ .padding({ right: 18 })
|
|
|
.layoutWeight(1)
|
|
.layoutWeight(1)
|
|
|
.clickEffect({level:ClickEffectLevel.MIDDLE, scale: 0.5})
|
|
.clickEffect({level:ClickEffectLevel.MIDDLE, scale: 0.5})
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
@@ -5561,22 +5565,6 @@ export struct LocalMusic {
|
|
|
|
|
|
|
|
Column() {
|
|
Column() {
|
|
|
|
|
|
|
|
- // Stack({ alignContent: Alignment.Center }) {
|
|
|
|
|
- //
|
|
|
|
|
- //
|
|
|
|
|
- //
|
|
|
|
|
- // Image($r('app.media.icon_load'))
|
|
|
|
|
- // .objectFit(ImageFit.Auto)
|
|
|
|
|
- // .width('120px')
|
|
|
|
|
- // .height('120px')
|
|
|
|
|
- // .visibility(this.loadingVisible)
|
|
|
|
|
- // .border({ width: 0 })
|
|
|
|
|
- // .borderStyle(BorderStyle.Dashed)
|
|
|
|
|
- //
|
|
|
|
|
- //
|
|
|
|
|
- // }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
Column() {
|
|
Column() {
|
|
|
|
|
|
|
|
Column() {
|
|
Column() {
|
|
@@ -5593,9 +5581,6 @@ export struct LocalMusic {
|
|
|
.visibility(DeviceUtil.getDeviceType()==resourceManager.DeviceType.DEVICE_TYPE_2IN1?
|
|
.visibility(DeviceUtil.getDeviceType()==resourceManager.DeviceType.DEVICE_TYPE_2IN1?
|
|
|
Visibility.Visible:this.isShowPlayPageBack?Visibility.Visible:Visibility.None)
|
|
Visibility.Visible:this.isShowPlayPageBack?Visibility.Visible:Visibility.None)
|
|
|
|
|
|
|
|
- // .visibility(this.currentBreakpoint !== BreakpointTypeEnum.SM
|
|
|
|
|
- // ?Visibility.Visible:Visibility.Visible)
|
|
|
|
|
-
|
|
|
|
|
if (this.showSpeedDialog) {
|
|
if (this.showSpeedDialog) {
|
|
|
this.SpeedDialog()
|
|
this.SpeedDialog()
|
|
|
}
|
|
}
|