|
@@ -35,6 +35,7 @@ struct MusicPlayerWidgetLyricCard {
|
|
|
@State isDragging: boolean = false
|
|
@State isDragging: boolean = false
|
|
|
@State dragProgressMs: number = 0
|
|
@State dragProgressMs: number = 0
|
|
|
@State sliderProgressMs: number = 0
|
|
@State sliderProgressMs: number = 0
|
|
|
|
|
+ @State isChangeBg: boolean = true
|
|
|
|
|
|
|
|
aboutToAppear(): void {
|
|
aboutToAppear(): void {
|
|
|
Logger.info(TAG,
|
|
Logger.info(TAG,
|
|
@@ -174,13 +175,13 @@ struct MusicPlayerWidgetLyricCard {
|
|
|
build() {
|
|
build() {
|
|
|
Stack({ alignContent: Alignment.Center }) {
|
|
Stack({ alignContent: Alignment.Center }) {
|
|
|
|
|
|
|
|
- if (this.hasCoverBackground()) {
|
|
|
|
|
|
|
+ if (this.hasCoverBackground()&&this.isChangeBg) {
|
|
|
Column()
|
|
Column()
|
|
|
.width('100%')
|
|
.width('100%')
|
|
|
.height('100%')
|
|
.height('100%')
|
|
|
.backgroundImage(this.resolveCoverSource())
|
|
.backgroundImage(this.resolveCoverSource())
|
|
|
.backgroundImageSize({ width: '100%' })
|
|
.backgroundImageSize({ width: '100%' })
|
|
|
- .backgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR)
|
|
|
|
|
|
|
+ .backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK)
|
|
|
} else {
|
|
} else {
|
|
|
Column()
|
|
Column()
|
|
|
.width('100%')
|
|
.width('100%')
|
|
@@ -197,6 +198,9 @@ struct MusicPlayerWidgetLyricCard {
|
|
|
.height(120)
|
|
.height(120)
|
|
|
.borderRadius(10)
|
|
.borderRadius(10)
|
|
|
.objectFit(ImageFit.Cover)
|
|
.objectFit(ImageFit.Cover)
|
|
|
|
|
+ .onClick(()=>{
|
|
|
|
|
+ this.isChangeBg = !this.isChangeBg
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
Column({ space: 8 }) {
|
|
Column({ space: 8 }) {
|
|
|
Text(this.resolveTitleArtistText())
|
|
Text(this.resolveTitleArtistText())
|
|
@@ -207,14 +211,16 @@ struct MusicPlayerWidgetLyricCard {
|
|
|
.textAlign(TextAlign.Center)
|
|
.textAlign(TextAlign.Center)
|
|
|
.textOverflow({ overflow: TextOverflow.Ellipsis })
|
|
.textOverflow({ overflow: TextOverflow.Ellipsis })
|
|
|
Text(this.resolveLyricMetaText())
|
|
Text(this.resolveLyricMetaText())
|
|
|
- .fontSize(12)
|
|
|
|
|
- .fontColor('#F2FFFFFF')
|
|
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor(Color.White)
|
|
|
|
|
+ .fontWeight(FontWeight.Bold)
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
.textAlign(TextAlign.Center)
|
|
.textAlign(TextAlign.Center)
|
|
|
.textOverflow({ overflow: TextOverflow.Ellipsis })
|
|
.textOverflow({ overflow: TextOverflow.Ellipsis })
|
|
|
Text(this.resolveNextLyricText())
|
|
Text(this.resolveNextLyricText())
|
|
|
.fontSize(13)
|
|
.fontSize(13)
|
|
|
- .fontColor('#D8FFFFFF')
|
|
|
|
|
|
|
+ .fontColor(Color.White)
|
|
|
|
|
+ .fontWeight(FontWeight.Medium)
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
.textAlign(TextAlign.Center)
|
|
.textAlign(TextAlign.Center)
|
|
|
.textOverflow({ overflow: TextOverflow.Ellipsis })
|
|
.textOverflow({ overflow: TextOverflow.Ellipsis })
|