Kaynağa Gözat

app相关信息配置

chenritian 2 hafta önce
ebeveyn
işleme
95788e0c20

+ 1 - 1
AppScope/resources/base/element/string.json

@@ -2,7 +2,7 @@
   "string": [
     {
       "name": "app_name",
-      "value": "yt_jdbapp"
+      "value": "小易旅记"
     }
   ]
 }

BIN
AppScope/resources/base/media/app_icon.png


BIN
AppScope/resources/base/media/background.png


BIN
AppScope/resources/base/media/foreground.png


BIN
AppScope/resources/base/media/start_icon.png


+ 1 - 1
entry/src/main/ets/pages/EntryPage.ets

@@ -23,7 +23,7 @@ struct EntryPage {
       Column() {
         Column() {
           Column({ space: 13 }) {
-            Image($r('app.media.startIcon'))
+            Image($r('app.media.app_icon'))
               .width(100)
               .aspectRatio(1)
               .borderRadius(20)

+ 1 - 1
entry/src/main/module.json5

@@ -22,7 +22,7 @@
         "description": "$string:EntryAbility_desc",
         "icon": "$media:layered_image",
         "label": "$string:EntryAbility_label",
-        "startWindowIcon": "$media:startIcon",
+        "startWindowIcon": "$media:start_icon",
         "startWindowBackground": "$color:start_window_background",
         "exported": true,
         "skills": [

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

@@ -10,7 +10,7 @@
     },
     {
       "name": "EntryAbility_label",
-      "value": "label"
+      "value": "小易旅记"
     }
   ]
 }

+ 0 - 7
entry/src/main/resources/base/media/layered_image.json

@@ -1,7 +0,0 @@
-{
-  "layered-image":
-  {
-    "background" : "$media:background",
-    "foreground" : "$media:foreground"
-  }
-}

BIN
entry/src/main/resources/base/media/startIcon.png