|
@@ -85,8 +85,8 @@ import { deviceInfo } from '@kit.BasicServicesKit';
|
|
|
import { HSBColorPicker, HSBColorPickerLayout } from '@keke/color-picker'
|
|
import { HSBColorPicker, HSBColorPickerLayout } from '@keke/color-picker'
|
|
|
import { DEBUG } from 'BuildProfile';
|
|
import { DEBUG } from 'BuildProfile';
|
|
|
import { LrcParser } from '@sgaolei/lrc_parser';
|
|
import { LrcParser } from '@sgaolei/lrc_parser';
|
|
|
|
|
+import { IBestIcon } from "@ibestservices/ibest-ui";
|
|
|
import app, { AppResponse } from '@system.app';
|
|
import app, { AppResponse } from '@system.app';
|
|
|
-import { Log } from '@tencent/wechat_open_sdk';
|
|
|
|
|
|
|
|
|
|
const TAG = 'LocalMusic';
|
|
const TAG = 'LocalMusic';
|
|
|
|
|
|
|
@@ -768,6 +768,7 @@ export struct LocalMusic {
|
|
|
files = result;
|
|
files = result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
files.sort((a, b) => a.cTime.localeCompare(b.cTime));
|
|
files.sort((a, b) => a.cTime.localeCompare(b.cTime));
|
|
|
Utility.doSortListAscending(files)
|
|
Utility.doSortListAscending(files)
|
|
|
|
|
|
|
@@ -795,7 +796,7 @@ export struct LocalMusic {
|
|
|
console.info(`onecold gengxin 1: ${this.videoLocalList.length}`);
|
|
console.info(`onecold gengxin 1: ${this.videoLocalList.length}`);
|
|
|
// for (let i = 0; i < this.videoLocalList.length; i++) {
|
|
// for (let i = 0; i < this.videoLocalList.length; i++) {
|
|
|
//
|
|
//
|
|
|
- // console.info(`onecold gengxin 1: ${this.videoLocalList[i].sampleRate}`);
|
|
|
|
|
|
|
+ // console.info(`onecold gengxin 1: ${this.videoLocalList[i].pixelMapPath}`);
|
|
|
//
|
|
//
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
@@ -2159,11 +2160,14 @@ export struct LocalMusic {
|
|
|
@Builder
|
|
@Builder
|
|
|
private DirItem(item: VideoItem, index?: number) {
|
|
private DirItem(item: VideoItem, index?: number) {
|
|
|
Row() {
|
|
Row() {
|
|
|
- Image(this.modeType !== 0 && StrUtil.isNotEmpty(item.pixelMapPath) ? item.pixelMapPath :
|
|
|
|
|
- $r('app.media.music_group'))
|
|
|
|
|
|
|
+ // Image(this.modeType !== 0 && StrUtil.isNotEmpty(item.pixelMapPath) ? item.pixelMapPath :
|
|
|
|
|
+ // $r('app.media.music_group'))
|
|
|
|
|
+ SymbolGlyph($r('sys.symbol.identify_song'))
|
|
|
.height(33)
|
|
.height(33)
|
|
|
.width(33)
|
|
.width(33)
|
|
|
- .alt($r('app.media.music_group'))
|
|
|
|
|
|
|
+ .fontColor([$r('app.color.img_color')])
|
|
|
|
|
+ .fontSize(33)
|
|
|
|
|
+ // .alt($r('app.media.music_group'))
|
|
|
.borderRadius('100%')
|
|
.borderRadius('100%')
|
|
|
.clip(true)
|
|
.clip(true)
|
|
|
.margin({ left: 20, top: 8, bottom: 8 })
|
|
.margin({ left: 20, top: 8, bottom: 8 })
|
|
@@ -2475,6 +2479,7 @@ export struct LocalMusic {
|
|
|
duration: 666,
|
|
duration: 666,
|
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
|
})// .opacity(this.opacityItem)
|
|
})// .opacity(this.opacityItem)
|
|
|
|
|
+ .fillColor($r('app.color.img_color'))
|
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
this.isSearchMode = true
|
|
this.isSearchMode = true
|
|
@@ -2490,12 +2495,14 @@ export struct LocalMusic {
|
|
|
this.showRankDialog()
|
|
this.showRankDialog()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- Image(this.isGridMusic?$r('app.media.list'):$r("app.media.grid"))
|
|
|
|
|
|
|
+ SymbolGlyph(this.isGridMusic?$r('sys.symbol.list_bullet'):$r('sys.symbol.square_grid_2x2'))
|
|
|
|
|
+ .fontColor([$r('app.color.img_color')])
|
|
|
.width(25)
|
|
.width(25)
|
|
|
.animation({
|
|
.animation({
|
|
|
duration: 666,
|
|
duration: 666,
|
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
this.isGridMusic = !this.isGridMusic
|
|
this.isGridMusic = !this.isGridMusic
|
|
@@ -2514,10 +2521,11 @@ export struct LocalMusic {
|
|
|
|
|
|
|
|
Row({ space: 8 }) {
|
|
Row({ space: 8 }) {
|
|
|
Row({ space: 8 }) {
|
|
Row({ space: 8 }) {
|
|
|
- Image($r("app.media.hm_play"))
|
|
|
|
|
|
|
+ // Image($r("app.media.hm_play"))
|
|
|
|
|
+ IBestIcon({name:'play-circle-o',iconSize:25,color:$r('app.color.img_color')})
|
|
|
.width(25)
|
|
.width(25)
|
|
|
.margin({ left: 8 })
|
|
.margin({ left: 8 })
|
|
|
- .fillColor('#ff5186')
|
|
|
|
|
|
|
+ // .fillColor($r('app.color.img_color'))
|
|
|
Text(`播放全部`)
|
|
Text(`播放全部`)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
.fontSize(14)
|
|
.fontSize(14)
|
|
@@ -2593,6 +2601,7 @@ export struct LocalMusic {
|
|
|
duration: 666,
|
|
duration: 666,
|
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
|
})// .opacity(this.opacityItem)
|
|
})// .opacity(this.opacityItem)
|
|
|
|
|
+ .fillColor($r('app.color.img_color'))
|
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
this.isSearchMode = true
|
|
this.isSearchMode = true
|
|
@@ -2603,17 +2612,20 @@ export struct LocalMusic {
|
|
|
duration: 666,
|
|
duration: 666,
|
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
|
})
|
|
})
|
|
|
|
|
+ .fillColor($r('app.color.img_color'))
|
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
this.isGridMusic = !this.isGridMusic
|
|
this.isGridMusic = !this.isGridMusic
|
|
|
})
|
|
})
|
|
|
- Image($r("app.media.refresh"))
|
|
|
|
|
- .width(25)
|
|
|
|
|
|
|
+ // Image($r("app.media.refresh"))
|
|
|
|
|
+ IBestIcon({ name: 'replay',iconSize:25,color:$r('app.color.img_color') })
|
|
|
|
|
+ // .width(25)
|
|
|
.visibility(this.isHistory || this.isCanBack || this.isSearchMode ? Visibility.None : Visibility.Visible)
|
|
.visibility(this.isHistory || this.isCanBack || this.isSearchMode ? Visibility.None : Visibility.Visible)
|
|
|
.animation({
|
|
.animation({
|
|
|
duration: 666,
|
|
duration: 666,
|
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
|
})// .opacity(this.opacityItem)
|
|
})// .opacity(this.opacityItem)
|
|
|
|
|
+ // .fillColor($r('app.color.img_color'))
|
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
if(this.isFavMusic){
|
|
if(this.isFavMusic){
|
|
@@ -2632,6 +2644,7 @@ export struct LocalMusic {
|
|
|
duration: 666,
|
|
duration: 666,
|
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
|
})
|
|
})
|
|
|
|
|
+ .fillColor($r('app.color.img_color'))
|
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
this.showRankDialog()
|
|
this.showRankDialog()
|
|
@@ -2641,12 +2654,13 @@ export struct LocalMusic {
|
|
|
Image(this.isMultiSelect ? $r("app.media.cancel_multi") : $r("app.media.top_flower"))
|
|
Image(this.isMultiSelect ? $r("app.media.cancel_multi") : $r("app.media.top_flower"))
|
|
|
.width(24)
|
|
.width(24)
|
|
|
.margin({ right: 10 })
|
|
.margin({ right: 10 })
|
|
|
- .fillColor('#ff5186')// .opacity(this.opacityItem)
|
|
|
|
|
|
|
+ // .fillColor('#ff5186')// .opacity(this.opacityItem)
|
|
|
.visibility(this.isHistory || this.isSearchMode ? Visibility.None : Visibility.Visible)
|
|
.visibility(this.isHistory || this.isSearchMode ? Visibility.None : Visibility.Visible)
|
|
|
.animation({
|
|
.animation({
|
|
|
duration: 666,
|
|
duration: 666,
|
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
|
})
|
|
})
|
|
|
|
|
+ .fillColor($r('app.color.img_color'))
|
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE })
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
this.isMultiSelect = !this.isMultiSelect
|
|
this.isMultiSelect = !this.isMultiSelect
|
|
@@ -2654,7 +2668,7 @@ export struct LocalMusic {
|
|
|
Image($r("app.media.uninstall_green"))
|
|
Image($r("app.media.uninstall_green"))
|
|
|
.width(24)
|
|
.width(24)
|
|
|
.margin({ right: 10 })
|
|
.margin({ right: 10 })
|
|
|
- .fillColor('#ff5186')
|
|
|
|
|
|
|
+ .fillColor($r('app.color.img_color'))
|
|
|
.visibility(this.isHistory ? Visibility.Visible : Visibility.None)
|
|
.visibility(this.isHistory ? Visibility.Visible : Visibility.None)
|
|
|
.animation({
|
|
.animation({
|
|
|
duration: 666,
|
|
duration: 666,
|
|
@@ -3599,6 +3613,7 @@ export struct LocalMusic {
|
|
|
.height(24)
|
|
.height(24)
|
|
|
.width(24)
|
|
.width(24)
|
|
|
.margin({ left: 8, right: 16 })
|
|
.margin({ left: 8, right: 16 })
|
|
|
|
|
+ .fillColor($r('app.color.img_color'))
|
|
|
.displayPriority(2)
|
|
.displayPriority(2)
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
if (ArrayUtil.isNotEmpty(this.songList)) {
|
|
if (ArrayUtil.isNotEmpty(this.songList)) {
|
|
@@ -3624,6 +3639,7 @@ export struct LocalMusic {
|
|
|
.height(32)
|
|
.height(32)
|
|
|
.width(32)
|
|
.width(32)
|
|
|
.displayPriority(3)
|
|
.displayPriority(3)
|
|
|
|
|
+ .fillColor($r('app.color.img_color'))
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
if (ArrayUtil.isNotEmpty(this.songList)) {
|
|
if (ArrayUtil.isNotEmpty(this.songList)) {
|
|
|
this.playOrPause()
|
|
this.playOrPause()
|
|
@@ -3641,6 +3657,7 @@ export struct LocalMusic {
|
|
|
right: 16,
|
|
right: 16,
|
|
|
left: 16
|
|
left: 16
|
|
|
})
|
|
})
|
|
|
|
|
+ .fillColor($r('app.color.img_color'))
|
|
|
.displayPriority(2)
|
|
.displayPriority(2)
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
if (ArrayUtil.isNotEmpty(this.songList)) {
|
|
if (ArrayUtil.isNotEmpty(this.songList)) {
|
|
@@ -3655,6 +3672,7 @@ export struct LocalMusic {
|
|
|
.height(24)
|
|
.height(24)
|
|
|
.width(24)
|
|
.width(24)
|
|
|
.displayPriority(1)
|
|
.displayPriority(1)
|
|
|
|
|
+ .fillColor($r('app.color.img_color'))
|
|
|
.bindSheet($$this.isShowSheet, this.PlayListSheet(), {
|
|
.bindSheet($$this.isShowSheet, this.PlayListSheet(), {
|
|
|
height: '95%',
|
|
height: '95%',
|
|
|
dragBar: true,
|
|
dragBar: true,
|
|
@@ -8919,8 +8937,10 @@ function cutPopupBuilder(dataBu: BubbleBean) {
|
|
|
ListItem() {
|
|
ListItem() {
|
|
|
Row() {
|
|
Row() {
|
|
|
Column() {
|
|
Column() {
|
|
|
- Image($r('app.media.music_group'))
|
|
|
|
|
|
|
+ // Image($r('app.media.music_group'))
|
|
|
|
|
+ SymbolGlyph($r('sys.symbol.identify_song'))
|
|
|
.height(28)
|
|
.height(28)
|
|
|
|
|
+ .fontColor([$r('app.color.img_color')])
|
|
|
.alignSelf(ItemAlign.Center)
|
|
.alignSelf(ItemAlign.Center)
|
|
|
|
|
|
|
|
}
|
|
}
|