|
|
@@ -10733,66 +10733,6 @@ export struct LocalMusic {
|
|
|
|
|
|
}
|
|
|
|
|
|
- @Builder
|
|
|
- private EqualizerQuickBar(): void {
|
|
|
- Row() {
|
|
|
- Row() {
|
|
|
- SymbolGlyph($r('sys.symbol.waveform'))
|
|
|
- .fontSize(16)
|
|
|
- .fontColor([this.themeColor])
|
|
|
- Text('均衡器')
|
|
|
- .fontSize(12)
|
|
|
- .fontColor(Color.White)
|
|
|
- .margin({ left: 6 })
|
|
|
- }
|
|
|
- .onClick(() => {
|
|
|
- this.isEqualizerSheet = true;
|
|
|
- })
|
|
|
-
|
|
|
- Blank()
|
|
|
-
|
|
|
- Toggle({ type: ToggleType.Switch, isOn: this.eqCurrentEnabled })
|
|
|
- .selectedColor(this.themeColor)
|
|
|
- .switchPointColor(Color.White)
|
|
|
- .width(42)
|
|
|
- .height(22)
|
|
|
- .onChange((isOn: boolean) => {
|
|
|
- const equalizerManager = EqualizerManager.getInstance();
|
|
|
- equalizerManager.enabled = isOn;
|
|
|
- this.syncEqualizerUi();
|
|
|
- if (this.mIjkMediaPlayer) {
|
|
|
- equalizerManager.applyToPlayer(this.mIjkMediaPlayer);
|
|
|
- this.markEqualizerApplied();
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- Text(this.eqCurrentPresetName)
|
|
|
- .fontSize(10)
|
|
|
- .fontColor(Color.White)
|
|
|
- .margin({ left: 8 })
|
|
|
-
|
|
|
- Text(this.eqAppliedAt > 0 ? '已生效' : '未应用')
|
|
|
- .fontSize(10)
|
|
|
- .fontColor(this.eqAppliedAt > 0 ? this.themeColor : Color.White)
|
|
|
- .margin({ left: 8 })
|
|
|
-
|
|
|
- Button('应用')
|
|
|
- .fontSize(11)
|
|
|
- .fontColor(Color.White)
|
|
|
- .backgroundColor(this.eqAppliedAt > 0 ? this.themeColor : '#666666')
|
|
|
- .height(24)
|
|
|
- .padding({ left: 10, right: 10 })
|
|
|
- .borderRadius(12)
|
|
|
- .enabled(!this.eqApplying && this.CONTROL_PlayStatus !== PlayStatus.INIT)
|
|
|
- .onClick(() => {
|
|
|
- this.applyEqualizerToCurrentPlayback();
|
|
|
- })
|
|
|
- }
|
|
|
- .width(this.isLandscape ? '88%' : '95%')
|
|
|
- .padding({ left: 12, right: 12, top: 6, bottom: 6 })
|
|
|
- .backgroundColor('rgba(0,0,0,0.32)')
|
|
|
- .borderRadius(12)
|
|
|
- }
|
|
|
|
|
|
@Builder
|
|
|
playMenuBuilder(){
|