From d9a11ff85a9a322f6c6bde67efcfc1246c034b63 Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Mon, 23 Jun 2025 17:18:18 +0800 Subject: [PATCH 1/5] add code Signed-off-by: ZihaoWU --- api/@ohos.window.d.ts | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 889334c550..e3c3bc0646 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -7979,6 +7979,21 @@ declare namespace window { */ setWindowShadowEnabled(enable: boolean): Promise; + /** + * Set window container active and inactive color. + * + * @param { string } activeColor - window container color in active. + * @param { string } inactiveColor - window container color in inactive. + * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300004 - Unauthorized operation. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + setWindowContainerColor(activeColor: string, inactiveColor: string): void; + /** * Sets the brightness of window. * @@ -10488,24 +10503,6 @@ declare namespace window { */ setTitleAndDockHoverShown(isTitleHoverShown?: boolean, isDockHoverShown?: boolean): Promise; - /** - * Set window container active and inactive color. - * - * @param { string } activeColor - window container color in active. - * @param { string } inactiveColor - window container color in inactive. - * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. - * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300004 - Unauthorized operation. - * @syscap SystemCapability.Window.SessionManager - * @systemapi Hide this for inner system use. - * @atomicservice - * @since 15 - */ - setWindowContainerColor(activeColor: string, inactiveColor: string): void; - /** * Set whether window delay raise is enabled. * -- Gitee From 887cc0e32e98b46e8dd11948481d23fda3c6cc50 Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Mon, 23 Jun 2025 17:57:05 +0800 Subject: [PATCH 2/5] add code Signed-off-by: ZihaoWU --- api/@ohos.window.d.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index e3c3bc0646..dcbb807e88 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -7979,21 +7979,6 @@ declare namespace window { */ setWindowShadowEnabled(enable: boolean): Promise; - /** - * Set window container active and inactive color. - * - * @param { string } activeColor - window container color in active. - * @param { string } inactiveColor - window container color in inactive. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. - * @throws { BusinessError } 1300002 - This window state is abnormal. - * @throws { BusinessError } 1300004 - Unauthorized operation. - * @syscap SystemCapability.Window.SessionManager - * @since 20 - */ - setWindowContainerColor(activeColor: string, inactiveColor: string): void; - /** * Sets the brightness of window. * @@ -10503,6 +10488,21 @@ declare namespace window { */ setTitleAndDockHoverShown(isTitleHoverShown?: boolean, isDockHoverShown?: boolean): Promise; + /** + * Set window container active and inactive color. + * + * @param { string } activeColor - window container color in active. + * @param { string } inactiveColor - window container color in inactive. + * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300004 - Unauthorized operation. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + setWindowContainerColor(activeColor: string, inactiveColor: string): void; + /** * Set whether window delay raise is enabled. * -- Gitee From 13b4f47390080126dbfd817e9231109ec5c8268d Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Tue, 24 Jun 2025 17:17:35 +0800 Subject: [PATCH 3/5] add code Signed-off-by: ZihaoWU --- api/@ohos.window.d.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index dcbb807e88..15f874eaf1 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10493,8 +10493,6 @@ declare namespace window { * * @param { string } activeColor - window container color in active. * @param { string } inactiveColor - window container color in inactive. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300004 - Unauthorized operation. -- Gitee From b84ec6558fe32def86f8dd69354eb36aa3834ad2 Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Wed, 25 Jun 2025 11:27:00 +0800 Subject: [PATCH 4/5] add code Signed-off-by: ZihaoWU --- api/@ohos.window.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 15f874eaf1..376f835f19 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -7979,6 +7979,21 @@ declare namespace window { */ setWindowShadowEnabled(enable: boolean): Promise; + /** + * Set window container background color in active and inactive state. + * + * @param { string } activeColor - window container color in active. + * @param { string } inactiveColor - window container color in inactive. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300004 - Unauthorized operation. + * @syscap SystemCapability.Window.SessionManager + * @systemapi Hide this for inner system use. + * @since 20 + */ + setWindowContainerModalColor(activeColor: string, inactiveColor: string): void; + /** * Sets the brightness of window. * -- Gitee From c100df8e61b34bd2b9e096f10de21f59c34029d3 Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Wed, 25 Jun 2025 11:28:08 +0800 Subject: [PATCH 5/5] add code Signed-off-by: ZihaoWU --- api/@ohos.window.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 376f835f19..6563946e4c 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -7980,7 +7980,7 @@ declare namespace window { setWindowShadowEnabled(enable: boolean): Promise; /** - * Set window container background color in active and inactive state. + * Set window container background color in the active and inactive states. * * @param { string } activeColor - window container color in active. * @param { string } inactiveColor - window container color in inactive. -- Gitee