可通过在module.json5配置文件中设置abilities标签的属性来实现:1、startWindowIcon:标识当前UIAbility组件启动页面图标资源文件的索引。取值示例:media:icon。2、startWindowBackground:标识当前UIAbility组件启动页面背景颜色资源文件的索引。取值示例:color:red。参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/module-configuration-file-V5\#配置文件标签可修改默认的startWindowIcon和startWindowBackground,可以配置为透明的SVG图片(非建议,非最佳实践)。启动页是每个UIAbility都必须有的,这两个字段不可缺省,否则编译不能通过。
可通过在module.json5配置文件中设置abilities标签的属性来实现:
1、startWindowIcon:标识当前UIAbility组件启动页面图标资源文件的索引。取值示例:media:icon。
2、startWindowBackground:标识当前UIAbility组件启动页面背景颜色资源文件的索引。取值示例:color:red。
参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/module-configuration-file-V5\#配置文件标签
可修改默认的startWindowIcon和startWindowBackground,可以配置为透明的SVG图片(非建议,非最佳实践)。启动页是每个UIAbility都必须有的,这两个字段不可缺省,否则编译不能通过。