harmony 鸿蒙Configuring Layered Icons
Configuring Layered Icons
If the application icon is a layered icon (including the foreground and background images), you can configure the icon by referring to this topic. For details about the icon specifications, see Icon Deliverables.
Procedure
- Place the foreground and background resource files in AppScope\resources\base\media. In this example, the file names of the foreground and background resource files are foreground.png and background.png respectively.
- Create an layered_image.json file in the AppScope\resources\base\media directory and configure the foreground and background resource information of the layered icon in the file.
json { "layered-image": { "background" : "$media:background", "foreground" : "$media:foreground" } }
- Reference the layered icon resource file in the app.json5 configuration file. Example:
json { "app": { "icon": "$media:layered_image", // ... } }
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Creating an Application Clone
harmony 鸿蒙app.json5 Configuration File
harmony 鸿蒙Structure of the app Tag
harmony 鸿蒙Overview of Application Configuration Files in FA Model
harmony 鸿蒙Overview of Application Configuration Files in Stage Model
harmony 鸿蒙Application Installation, Uninstall, and Update
harmony 鸿蒙Application Package Overview
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦