|
@@ -32,6 +32,7 @@ import { audio } from '@kit.AudioKit'
|
|
|
// @Entry
|
|
// @Entry
|
|
|
@Component
|
|
@Component
|
|
|
export struct SettingPage {
|
|
export struct SettingPage {
|
|
|
|
|
+ @State showZMIndex: boolean = false //是否右侧显示字母索引
|
|
|
@State autoHideTitle: boolean = true //滚动自动隐藏标题栏
|
|
@State autoHideTitle: boolean = true //滚动自动隐藏标题栏
|
|
|
@State isNoJumpToHome: boolean = false //网盘播放不跳转首页
|
|
@State isNoJumpToHome: boolean = false //网盘播放不跳转首页
|
|
|
@State iconCurrentID: string = 'default';//图标的id
|
|
@State iconCurrentID: string = 'default';//图标的id
|
|
@@ -255,7 +256,7 @@ export struct SettingPage {
|
|
|
|
|
|
|
|
// 组件生命周期
|
|
// 组件生命周期
|
|
|
aboutToAppear() {
|
|
aboutToAppear() {
|
|
|
- // this.geIDD()
|
|
|
|
|
|
|
+ this.showZMIndex = PreferencesUtil.getBooleanSync('showZMIndex', false)
|
|
|
this.autoHideTitle = PreferencesUtil.getBooleanSync('autoHideTitle', true)
|
|
this.autoHideTitle = PreferencesUtil.getBooleanSync('autoHideTitle', true)
|
|
|
this.isShowPrecious = PreferencesUtil.getBooleanSync('isShowPrecious', false)
|
|
this.isShowPrecious = PreferencesUtil.getBooleanSync('isShowPrecious', false)
|
|
|
this.isBgPlayOpen = PreferencesUtil.getBooleanSync(SettingPage.IS_BGPLAY_OPEN, true)
|
|
this.isBgPlayOpen = PreferencesUtil.getBooleanSync(SettingPage.IS_BGPLAY_OPEN, true)
|
|
@@ -2291,65 +2292,36 @@ export struct SettingPage {
|
|
|
|
|
|
|
|
Line().width('100%').height(0.3).backgroundColor($r('app.color.index_tab_unselected_font_color'))
|
|
Line().width('100%').height(0.3).backgroundColor($r('app.color.index_tab_unselected_font_color'))
|
|
|
|
|
|
|
|
- // Row() {
|
|
|
|
|
- // SymbolGlyph($r('sys.symbol.label'))
|
|
|
|
|
- // .fontSize(20)
|
|
|
|
|
- // .fontColor([this.themeColor])
|
|
|
|
|
- // .alignSelf(ItemAlign.Center)
|
|
|
|
|
- // .margin({ left: 15 })
|
|
|
|
|
- // Text('显示播放全部')
|
|
|
|
|
- // .margin({ left: 8 })
|
|
|
|
|
- // .fontSize(15)
|
|
|
|
|
- // .fontColor(Color.Gray)
|
|
|
|
|
- // .fontWeight(480)
|
|
|
|
|
- // .layoutWeight(1)
|
|
|
|
|
- // Toggle({ type: ToggleType.Switch, isOn: this.isShowAllBar })
|
|
|
|
|
- // .selectedColor(this.themeColor)
|
|
|
|
|
- // .switchPointColor(Color.White)
|
|
|
|
|
- // .margin({ right: 18 })
|
|
|
|
|
- // .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
|
|
- // .onChange((checked: boolean) => {
|
|
|
|
|
- // this.isShowAllBar = checked;
|
|
|
|
|
- // PreferencesUtil.put(SettingPage.IS_SHOW_ALLBAR, this.isShowAllBar)
|
|
|
|
|
- // this.sendChangeEvent()
|
|
|
|
|
- // })
|
|
|
|
|
- // .width(50)
|
|
|
|
|
- // .height(30);
|
|
|
|
|
- // }
|
|
|
|
|
- // .height(55)
|
|
|
|
|
- // .clickEffect({ level: ClickEffectLevel.HEAVY })
|
|
|
|
|
- //
|
|
|
|
|
- // Line().width('100%').height(0.3).backgroundColor($r('app.color.index_tab_unselected_font_color'))
|
|
|
|
|
- // 显示私密音频
|
|
|
|
|
- // Row() {
|
|
|
|
|
- // SymbolGlyph($r('sys.symbol.lock'))
|
|
|
|
|
- // .fontSize(20)
|
|
|
|
|
- // .fontColor([this.themeColor])
|
|
|
|
|
- // .alignSelf(ItemAlign.Center)
|
|
|
|
|
- // .margin({ left: 15 })
|
|
|
|
|
- // Text('显示私密音频')
|
|
|
|
|
- // .margin({ left: 8 })
|
|
|
|
|
- // .fontSize(15)
|
|
|
|
|
- // .fontColor(Color.Gray)
|
|
|
|
|
- // .fontWeight(480)
|
|
|
|
|
- // .layoutWeight(1)
|
|
|
|
|
- // Toggle({ type: ToggleType.Switch, isOn: this.isShowSimi })
|
|
|
|
|
- // .selectedColor(this.themeColor)
|
|
|
|
|
- // .switchPointColor(Color.White)
|
|
|
|
|
- // .margin({ right: 18 })
|
|
|
|
|
- // .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
|
|
- // .onChange((checked: boolean) => {
|
|
|
|
|
- // this.isShowSimi = checked;
|
|
|
|
|
- // PreferencesUtil.put(SettingPage.IS_SHOW_SIMI, this.isShowSimi)
|
|
|
|
|
- // this.sendChangeEvent()
|
|
|
|
|
- // })
|
|
|
|
|
- // .width(50)
|
|
|
|
|
- // .height(30);
|
|
|
|
|
- // }
|
|
|
|
|
- // .height(55)
|
|
|
|
|
- // .clickEffect({ level: ClickEffectLevel.HEAVY })
|
|
|
|
|
- //
|
|
|
|
|
- // Line().width('100%').height(0.3).backgroundColor($r('app.color.index_tab_unselected_font_color'))
|
|
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ SymbolGlyph($r('sys.symbol.label'))
|
|
|
|
|
+ .fontSize(20)
|
|
|
|
|
+ .fontColor([this.themeColor])
|
|
|
|
|
+ .alignSelf(ItemAlign.Center)
|
|
|
|
|
+ .margin({ left: 15 })
|
|
|
|
|
+ Text('显示右侧字母索引')
|
|
|
|
|
+ .margin({ left: 8 })
|
|
|
|
|
+ .fontSize(15)
|
|
|
|
|
+ .fontColor(Color.Gray)
|
|
|
|
|
+ .fontWeight(480)
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ Toggle({ type: ToggleType.Switch, isOn: this.showZMIndex })
|
|
|
|
|
+ .selectedColor(this.themeColor)
|
|
|
|
|
+ .switchPointColor(Color.White)
|
|
|
|
|
+ .margin({ right: 18 })
|
|
|
|
|
+ .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
|
|
+ .onChange((checked: boolean) => {
|
|
|
|
|
+ this.showZMIndex = checked;
|
|
|
|
|
+ PreferencesUtil.put('showZMIndex', this.showZMIndex)
|
|
|
|
|
+ this.sendChangeEvent()
|
|
|
|
|
+ })
|
|
|
|
|
+ .width(50)
|
|
|
|
|
+ .height(30);
|
|
|
|
|
+ }
|
|
|
|
|
+ .height(55)
|
|
|
|
|
+ .clickEffect({ level: ClickEffectLevel.HEAVY })
|
|
|
|
|
+
|
|
|
|
|
+ Line().width('100%').height(0.3).backgroundColor($r('app.color.index_tab_unselected_font_color'))
|
|
|
|
|
+
|
|
|
// 播放页单行歌词
|
|
// 播放页单行歌词
|
|
|
Row() {
|
|
Row() {
|
|
|
SymbolGlyph($r('sys.symbol.close_sidebar'))
|
|
SymbolGlyph($r('sys.symbol.close_sidebar'))
|