鸿蒙NEXT修改白屏页方案

137 阅读1分钟

暂时只找到这一种方案,后续如果有更好的实现方式再更新

实现方式: 修改module.json5文件abilities节点下的两个参数
startWindowIcon:图片
startWindowBackground:背景色

{
  "module": {
    "name": "entry",
    ...
    "abilities": [
      {
        ...
        "startWindowIcon": "$media:ic_start",  //白屏页资源图片
        "startWindowBackground": "$color:start_window_background",//白屏页背景色
        ...
          }
        ]
      }
    ],
  }
}