diff --git a/NativeAPI/NativeTemplateDemo/entry/build-profile.json5 b/NativeAPI/NativeTemplateDemo/entry/build-profile.json5 index c3693359c3c6c3ba1c70727594bb368a6530bf5b..06d1f6424baf501281c04af9bc036bd616b04a25 100644 --- a/NativeAPI/NativeTemplateDemo/entry/build-profile.json5 +++ b/NativeAPI/NativeTemplateDemo/entry/build-profile.json5 @@ -28,9 +28,6 @@ "targets": [ { "name": "default", - }, - { - "name": "ohosTest", } ] } \ No newline at end of file diff --git a/NativeAPI/NativeTemplateDemo/entry/src/main/module.json5 b/NativeAPI/NativeTemplateDemo/entry/src/main/module.json5 index e1f8ca34d91534b014326aa1723a38123b086044..99265e3e803c937299eac9791d93d541c40d35b1 100644 --- a/NativeAPI/NativeTemplateDemo/entry/src/main/module.json5 +++ b/NativeAPI/NativeTemplateDemo/entry/src/main/module.json5 @@ -20,19 +20,20 @@ "description": "$string:entry_desc", "mainElement": "MainAbility", "deviceTypes": [ - "phone", + "default", "tablet" ], "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:main_pages", - "uiSyntax": "ets", "abilities": [ { "name": "MainAbility", "srcEntrance": "./ets/MainAbility/MainAbility.ts", "description": "$string:MainAbility_desc", "icon": "$media:icon", + "startWindowBackground": "$color:white", + "startWindowIcon": "$media:icon", "label": "$string:MainAbility_label", "visible": true, "skills": [ diff --git a/NativeAPI/NativeTemplateDemo/entry/src/main/resources/base/element/color.json b/NativeAPI/NativeTemplateDemo/entry/src/main/resources/base/element/color.json new file mode 100644 index 0000000000000000000000000000000000000000..1bbc9aa9617e97c45440e1d3d66afc1154837012 --- /dev/null +++ b/NativeAPI/NativeTemplateDemo/entry/src/main/resources/base/element/color.json @@ -0,0 +1,8 @@ +{ + "color": [ + { + "name": "white", + "value": "#FFFFFF" + } + ] +} \ No newline at end of file diff --git a/NativeAPI/XComponent/entry/build-profile.json5 b/NativeAPI/XComponent/entry/build-profile.json5 index d405a0490bf3fdae10875d275e9e88abed27a994..34877aad256bfdb560b2704e7480ff6a752cf575 100644 --- a/NativeAPI/XComponent/entry/build-profile.json5 +++ b/NativeAPI/XComponent/entry/build-profile.json5 @@ -14,9 +14,6 @@ "targets": [ { "name": "default", - }, - { - "name": "ohosTest", } ] } \ No newline at end of file diff --git a/NativeAPI/XComponent/entry/src/main/module.json5 b/NativeAPI/XComponent/entry/src/main/module.json5 index 035cdc75464278063f3d80f9fc859ac37d6b8b61..97c4060f9f8125767a08362d8696c80c1002e736 100644 --- a/NativeAPI/XComponent/entry/src/main/module.json5 +++ b/NativeAPI/XComponent/entry/src/main/module.json5 @@ -6,19 +6,20 @@ "description": "$string:entry_desc", "mainElement": "MainAbility", "deviceTypes": [ - "phone", + "default", "tablet" ], "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:main_pages", - "uiSyntax": "ets", "abilities": [ { "name": "MainAbility", "srcEntrance": "./ets/MainAbility/MainAbility.ts", "description": "$string:MainAbility_desc", "icon": "$media:icon", + "startWindowIcon": "$media:icon", + "startWindowBackground": "$color:white", "label": "$string:MainAbility_label", "visible": true, "skills": [ diff --git a/NativeAPI/XComponent/entry/src/main/resources/base/element/color.json b/NativeAPI/XComponent/entry/src/main/resources/base/element/color.json new file mode 100644 index 0000000000000000000000000000000000000000..1bbc9aa9617e97c45440e1d3d66afc1154837012 --- /dev/null +++ b/NativeAPI/XComponent/entry/src/main/resources/base/element/color.json @@ -0,0 +1,8 @@ +{ + "color": [ + { + "name": "white", + "value": "#FFFFFF" + } + ] +} \ No newline at end of file