ソースを参照

深色/浅色切换

chendeben 1 年間 前
コミット
9d2df06fe5

+ 2 - 2
entry/src/main/ets/view/LocalMusic.ets

@@ -941,8 +941,8 @@ export struct LocalMusic {
         $r('app.media.refresh')]
     let pup = XPopup.Builder()
       .setPopupPosition(PopupPosition.BOTTOM)
-      .atView('pup_positon_music')
       .setBackgroundColor($r('app.color.title_bar_bg'))
+      .atView('pup_positon_music')
       .asBubble(wrapBuilder(customPopupBuilder), dataBean)
       .show()
 
@@ -2246,7 +2246,7 @@ export struct LocalMusic {
           ForEach(this.tabs, (i: string, index) => {
             Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center }) {
               Flex()
-                .backgroundColor($r('app.color.title_bar_bg'))
+                .backgroundColor($r('app.color.tab_item_bg'))
                 .borderRadius(20)
                 .padding(10)
                 .margin(6)

+ 4 - 0
entry/src/main/resources/base/element/color.json

@@ -28,6 +28,10 @@
       "name": "title_bar_bg",
       "value": "#FF4081"
     },
+    {
+      "name": "tab_item_bg",
+      "value": "#FF4081"
+    },
     {
       "name": "index_background",
       "value": "#F1F3F5"

+ 4 - 0
entry/src/main/resources/dark/element/color.json

@@ -28,6 +28,10 @@
       "name": "title_bar_bg",
       "value": "#00000000"
     },
+    {
+      "name": "tab_item_bg",
+      "value": "#FF5A5959"
+    },
     {
       "name": "index_background",
       "value": "#121212"