Prechádzať zdrojové kódy

1. 首页启动图片优化

bjb 6 dní pred
rodič
commit
f7aef639b2

+ 2 - 2
entry/src/main/ets/pages/PageSplash.ets

@@ -8,12 +8,12 @@ import { Storage } from '../utils/Storage'
 struct PageSplash {
   build() {
     RelativeContainer() {
-      Image($r("app.media.startIcon"))
+      Image($r("app.media.start_icon"))
         .alignRules({
           center: { anchor: '__container__', align: VerticalAlign.Center },
           middle: { anchor: '__container__', align: HorizontalAlign.Center }
         })
-        .width(320)
+        .width(300)
     }
     .height('100%')
     .width('100%')

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

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

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


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