onecold пре 9 месеци
родитељ
комит
0ccda42fe8

+ 117 - 117
entry/src/main/ets/pages/SettingPage.ets

@@ -244,7 +244,7 @@ export struct SettingPage {
     this.twoFingerType = PreferencesUtil.getNumberSync(SettingPage.TWO_FINGER_TYPE, 2)
     this.twoFingerType = PreferencesUtil.getNumberSync(SettingPage.TWO_FINGER_TYPE, 2)
     this.isCircleBtn = PreferencesUtil.getBooleanSync(SettingPage.IS_CIRCLE_BTN, true)
     this.isCircleBtn = PreferencesUtil.getBooleanSync(SettingPage.IS_CIRCLE_BTN, true)
     this.isCoverTop = PreferencesUtil.getBooleanSync(SettingPage.IS_COVER_TOP, true)
     this.isCoverTop = PreferencesUtil.getBooleanSync(SettingPage.IS_COVER_TOP, true)
-    this.isShowTitleBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_TITLTBAR, true)
+    this.isShowTitleBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_TITLTBAR, false)
     this.isShowAllBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_ALLBAR, true)
     this.isShowAllBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_ALLBAR, true)
     this.isShowPlayPageBack = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_PLAYPAGE_BACK, true)
     this.isShowPlayPageBack = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_PLAYPAGE_BACK, true)
     this.isShowSingleLineLyric = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_SLLYRIC, false)
     this.isShowSingleLineLyric = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_SLLYRIC, false)
@@ -1629,95 +1629,95 @@ 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.text_clipboard'))
-          .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.isShowTitleBar })
-          .selectedColor(this.themeColor)
-          .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
-          .switchPointColor(Color.White)
-          .margin({ right: 18 })
-          .onChange((checked: boolean) => {
-            this.isShowTitleBar = checked;
-            PreferencesUtil.put(SettingPage.IS_SHOW_TITLTBAR, this.isShowTitleBar)
-            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.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 })
+      // Row() {
+      //   SymbolGlyph($r('sys.symbol.text_clipboard'))
+      //     .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.isShowTitleBar })
+      //     .selectedColor(this.themeColor)
+      //     .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
+      //     .switchPointColor(Color.White)
+      //     .margin({ right: 18 })
+      //     .onChange((checked: boolean) => {
+      //       this.isShowTitleBar = checked;
+      //       PreferencesUtil.put(SettingPage.IS_SHOW_TITLTBAR, this.isShowTitleBar)
+      //       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'))
 
 
-      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.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() {
       Row() {
         SymbolGlyph($r('sys.symbol.close_sidebar'))
         SymbolGlyph($r('sys.symbol.close_sidebar'))
@@ -1750,35 +1750,35 @@ 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.satellite_map'))
-          .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.isShowHeader })
-          .selectedColor(this.themeColor)
-          .switchPointColor(Color.White)
-          .margin({ right: 18 })
-          .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
-          .onChange((checked: boolean) => {
-            this.isShowHeader = checked;
-            PreferencesUtil.put(SettingPage.IS_SHOW_HEADER, this.isShowHeader)
-            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.satellite_map'))
+      //     .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.isShowHeader })
+      //     .selectedColor(this.themeColor)
+      //     .switchPointColor(Color.White)
+      //     .margin({ right: 18 })
+      //     .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
+      //     .onChange((checked: boolean) => {
+      //       this.isShowHeader = checked;
+      //       PreferencesUtil.put(SettingPage.IS_SHOW_HEADER, this.isShowHeader)
+      //       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.arrow_left'))
         SymbolGlyph($r('sys.symbol.arrow_left'))

Разлика између датотеке није приказан због своје велике величине
+ 474 - 438
entry/src/main/ets/view/LocalMusic.ets


+ 12 - 0
entry/src/main/resources/base/element/string.json

@@ -658,6 +658,18 @@
     {
     {
       "name": "converter_audio",
       "name": "converter_audio",
       "value": "格式转化"
       "value": "格式转化"
+    },
+    {
+      "name": "sort_by_name",
+      "value": "按名称升序"
+    },
+    {
+      "name": "sort_by_time",
+      "value": "按添加时间升序"
+    },
+    {
+      "name": "import_from_files",
+      "value": "从文件管理器导入"
     }
     }
   ]
   ]
 }
 }

Неке датотеке нису приказане због велике количине промена