From a61025a3120b112eacf6a42407079df87b3e8927 Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Wed, 2 Jul 2025 17:14:45 +0800 Subject: [PATCH 1/8] add code Signed-off-by: ZihaoWU --- .../security/AccessToken/permissions-for-all.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zh-cn/application-dev/security/AccessToken/permissions-for-all.md b/zh-cn/application-dev/security/AccessToken/permissions-for-all.md index 8028da79855..0b9c580cb8d 100644 --- a/zh-cn/application-dev/security/AccessToken/permissions-for-all.md +++ b/zh-cn/application-dev/security/AccessToken/permissions-for-all.md @@ -503,3 +503,15 @@ **支持设备**:PC/2in1 **起始版本**:20 + +## ohos.permission.WINDOW_TRANSPARENT + +允许应用设置主窗容器透明和去除主窗外边框阴影。 + +**权限级别**:normal + +**授权方式**:系统授权(system_grant) + +**支持设备**:PC/2in1 + +**起始版本**:20 -- Gitee From 867d7e7e44266e93bebb5ac88b99acfd15412432 Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Wed, 2 Jul 2025 17:18:19 +0800 Subject: [PATCH 2/8] add code Signed-off-by: ZihaoWU --- .../security/AccessToken/permissions-for-all.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/en/application-dev/security/AccessToken/permissions-for-all.md b/en/application-dev/security/AccessToken/permissions-for-all.md index 18eac370774..f663c63e09a 100644 --- a/en/application-dev/security/AccessToken/permissions-for-all.md +++ b/en/application-dev/security/AccessToken/permissions-for-all.md @@ -473,3 +473,15 @@ This permission is applicable to the applications that meet the following condit **Supported devices**: PC/2in1 **Valid since**: 20 + +## ohos.permission.WINDOW_TRANSPARENT + +Allow an application to set the main window container to be transparent and remove the shadow of the outer border of the main window。 + +**Permission level**: normal + +**Authorization mode**: system_grant + +**Supported devices**: PC/2in1 + +**Valid since**: 20 -- Gitee From 8cbf67afbb0c7bd42f2ea7da7101f148c93c74ed Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Thu, 3 Jul 2025 08:52:26 +0000 Subject: [PATCH 3/8] update en/application-dev/security/AccessToken/permissions-for-all.md. Signed-off-by: ZihaoWU --- en/application-dev/security/AccessToken/permissions-for-all.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/application-dev/security/AccessToken/permissions-for-all.md b/en/application-dev/security/AccessToken/permissions-for-all.md index f663c63e09a..7c955be84ef 100644 --- a/en/application-dev/security/AccessToken/permissions-for-all.md +++ b/en/application-dev/security/AccessToken/permissions-for-all.md @@ -474,7 +474,7 @@ This permission is applicable to the applications that meet the following condit **Valid since**: 20 -## ohos.permission.WINDOW_TRANSPARENT +## ohos.permission.SET_WINDOW_TRANSPARENT Allow an application to set the main window container to be transparent and remove the shadow of the outer border of the main window。 -- Gitee From 740971ff46fc6cf099f7bc4700d45da9042d7d73 Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Thu, 3 Jul 2025 08:52:55 +0000 Subject: [PATCH 4/8] update zh-cn/application-dev/security/AccessToken/permissions-for-all.md. Signed-off-by: ZihaoWU --- .../application-dev/security/AccessToken/permissions-for-all.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/security/AccessToken/permissions-for-all.md b/zh-cn/application-dev/security/AccessToken/permissions-for-all.md index 0b9c580cb8d..df9ac512573 100644 --- a/zh-cn/application-dev/security/AccessToken/permissions-for-all.md +++ b/zh-cn/application-dev/security/AccessToken/permissions-for-all.md @@ -504,7 +504,7 @@ **起始版本**:20 -## ohos.permission.WINDOW_TRANSPARENT +## ohos.permission.SET_WINDOW_TRANSPARENT 允许应用设置主窗容器透明和去除主窗外边框阴影。 -- Gitee From 8cb5638c9a4ed5de33daf4d1130a6a657dc5345a Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Thu, 3 Jul 2025 13:40:11 +0000 Subject: [PATCH 5/8] update en/application-dev/security/AccessToken/permissions-for-all.md. Signed-off-by: ZihaoWU --- en/application-dev/security/AccessToken/permissions-for-all.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/application-dev/security/AccessToken/permissions-for-all.md b/en/application-dev/security/AccessToken/permissions-for-all.md index 7c955be84ef..717f02b1a48 100644 --- a/en/application-dev/security/AccessToken/permissions-for-all.md +++ b/en/application-dev/security/AccessToken/permissions-for-all.md @@ -476,7 +476,7 @@ This permission is applicable to the applications that meet the following condit ## ohos.permission.SET_WINDOW_TRANSPARENT -Allow an application to set the main window container to be transparent and remove the shadow of the outer border of the main window。 +Allow an application to set the main window container to be transparent and remove the shadow of the outer border of the main window. **Permission level**: normal -- Gitee From e110a674652e3886865946f61e8540e11f048295 Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Thu, 3 Jul 2025 13:41:07 +0000 Subject: [PATCH 6/8] update en/application-dev/security/AccessToken/permissions-for-all.md. Signed-off-by: ZihaoWU --- en/application-dev/security/AccessToken/permissions-for-all.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/application-dev/security/AccessToken/permissions-for-all.md b/en/application-dev/security/AccessToken/permissions-for-all.md index 717f02b1a48..640c7b2edf4 100644 --- a/en/application-dev/security/AccessToken/permissions-for-all.md +++ b/en/application-dev/security/AccessToken/permissions-for-all.md @@ -476,7 +476,7 @@ This permission is applicable to the applications that meet the following condit ## ohos.permission.SET_WINDOW_TRANSPARENT -Allow an application to set the main window container to be transparent and remove the shadow of the outer border of the main window. +Allows an application to set the main window container to be transparent and remove the shadow of the outer border of the main window. **Permission level**: normal -- Gitee From bddddb84293a0169a99073d7d97d45b1da2965d7 Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Fri, 4 Jul 2025 02:25:31 +0000 Subject: [PATCH 7/8] update zh-cn/application-dev/security/AccessToken/permissions-for-all.md. Signed-off-by: ZihaoWU --- .../application-dev/security/AccessToken/permissions-for-all.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zh-cn/application-dev/security/AccessToken/permissions-for-all.md b/zh-cn/application-dev/security/AccessToken/permissions-for-all.md index df9ac512573..ebfb0103fd3 100644 --- a/zh-cn/application-dev/security/AccessToken/permissions-for-all.md +++ b/zh-cn/application-dev/security/AccessToken/permissions-for-all.md @@ -508,6 +508,8 @@ 允许应用设置主窗容器透明和去除主窗外边框阴影。 +获取该权限后,应用可以设置主窗口容器背景色,以及主窗口是否显示阴影。 + **权限级别**:normal **授权方式**:系统授权(system_grant) -- Gitee From 4fbed093c308cc1b2a35bce975ca45671aae8bf7 Mon Sep 17 00:00:00 2001 From: ZihaoWU Date: Fri, 4 Jul 2025 02:27:35 +0000 Subject: [PATCH 8/8] update en/application-dev/security/AccessToken/permissions-for-all.md. Signed-off-by: ZihaoWU --- en/application-dev/security/AccessToken/permissions-for-all.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/en/application-dev/security/AccessToken/permissions-for-all.md b/en/application-dev/security/AccessToken/permissions-for-all.md index 640c7b2edf4..15a64e17bf2 100644 --- a/en/application-dev/security/AccessToken/permissions-for-all.md +++ b/en/application-dev/security/AccessToken/permissions-for-all.md @@ -478,6 +478,8 @@ This permission is applicable to the applications that meet the following condit Allows an application to set the main window container to be transparent and remove the shadow of the outer border of the main window. +With this permission, the application can set the background color and shadow visibility of the main window. + **Permission level**: normal **Authorization mode**: system_grant -- Gitee