这是由应用的启动页面的背景颜色所决定的,默认为白色。可以通过startWindowBackground字段设置启动页面的背景颜色。设置如下:"module": { // ... "abilities": [ { "name": "EntryAbility",// UIAbility组件的名称 "srcEntrance": "./ets/entryability/EntryAbility.ts", // UIAbility组件的代码路径 "description": "$string:EntryAbility_desc", // UIAbility组件的描述信息 "icon": "$media: icon", // UIAbility组件的图标 "label": "$string:EntryAbility_label", // UIAbility组件的标签 "startWindowIcon": "$media: icon", // UIAbility组件启动页面图标资源文件的索引 "startWindowBackground": "$color: start_window_background", // UIAbility组件启动页面背景颜色资源文件的索引 //... } ] }
这是由应用的启动页面的背景颜色所决定的,默认为白色。
可以通过startWindowBackground字段设置启动页面的背景颜色。设置如下: