fix: apply system color scheme for iOS in auto theme mode, closes #1762 (#1767)

This commit is contained in:
Huang Xin 2025-08-08 19:45:04 +08:00 committed by GitHub
parent f2f744a2fe
commit f46be89036
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 156 additions and 29 deletions

View file

@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-get-system-color-scheme"
description = "Enables the get_system_color_scheme command without any pre-configured scope."
commands.allow = ["get_system_color_scheme"]
[[permission]]
identifier = "deny-get-system-color-scheme"
description = "Denies the get_system_color_scheme command without any pre-configured scope."
commands.deny = ["get_system_color_scheme"]

View file

@ -18,6 +18,7 @@ Default permissions for the plugin
- `allow-iap-fetch-products`
- `allow-iap-purchase-product`
- `allow-iap-restore-purchases`
- `allow-get-system-color-scheme`
## Permission Table
@ -161,6 +162,32 @@ Denies the get_sys_fonts_list command without any pre-configured scope.
<tr>
<td>
`native-bridge:allow-get-system-color-scheme`
</td>
<td>
Enables the get_system_color_scheme command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`native-bridge:deny-get-system-color-scheme`
</td>
<td>
Denies the get_system_color_scheme command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`native-bridge:allow-iap-fetch-products`
</td>

View file

@ -15,4 +15,5 @@ permissions = [
"allow-iap-fetch-products",
"allow-iap-purchase-product",
"allow-iap-restore-purchases",
"allow-get-system-color-scheme",
]

View file

@ -354,6 +354,18 @@
"const": "deny-get-sys-fonts-list",
"markdownDescription": "Denies the get_sys_fonts_list command without any pre-configured scope."
},
{
"description": "Enables the get_system_color_scheme command without any pre-configured scope.",
"type": "string",
"const": "allow-get-system-color-scheme",
"markdownDescription": "Enables the get_system_color_scheme command without any pre-configured scope."
},
{
"description": "Denies the get_system_color_scheme command without any pre-configured scope.",
"type": "string",
"const": "deny-get-system-color-scheme",
"markdownDescription": "Denies the get_system_color_scheme command without any pre-configured scope."
},
{
"description": "Enables the iap_fetch_products command without any pre-configured scope.",
"type": "string",
@ -463,10 +475,10 @@
"markdownDescription": "Denies the use_background_audio command without any pre-configured scope."
},
{
"description": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-auth-with-safari`\n- `allow-auth-with-custom-tab`\n- `allow-copy-uri-to-path`\n- `allow-use-background-audio`\n- `allow-install-package`\n- `allow-set-system-ui-visibility`\n- `allow-get-status-bar-height`\n- `allow-get-sys-fonts-list`\n- `allow-intercept-keys`\n- `allow-lock-screen-orientation`\n- `allow-iap-initialize`\n- `allow-iap-fetch-products`\n- `allow-iap-purchase-product`\n- `allow-iap-restore-purchases`",
"description": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-auth-with-safari`\n- `allow-auth-with-custom-tab`\n- `allow-copy-uri-to-path`\n- `allow-use-background-audio`\n- `allow-install-package`\n- `allow-set-system-ui-visibility`\n- `allow-get-status-bar-height`\n- `allow-get-sys-fonts-list`\n- `allow-intercept-keys`\n- `allow-lock-screen-orientation`\n- `allow-iap-initialize`\n- `allow-iap-fetch-products`\n- `allow-iap-purchase-product`\n- `allow-iap-restore-purchases`\n- `allow-get-system-color-scheme`",
"type": "string",
"const": "default",
"markdownDescription": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-auth-with-safari`\n- `allow-auth-with-custom-tab`\n- `allow-copy-uri-to-path`\n- `allow-use-background-audio`\n- `allow-install-package`\n- `allow-set-system-ui-visibility`\n- `allow-get-status-bar-height`\n- `allow-get-sys-fonts-list`\n- `allow-intercept-keys`\n- `allow-lock-screen-orientation`\n- `allow-iap-initialize`\n- `allow-iap-fetch-products`\n- `allow-iap-purchase-product`\n- `allow-iap-restore-purchases`"
"markdownDescription": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-auth-with-safari`\n- `allow-auth-with-custom-tab`\n- `allow-copy-uri-to-path`\n- `allow-use-background-audio`\n- `allow-install-package`\n- `allow-set-system-ui-visibility`\n- `allow-get-status-bar-height`\n- `allow-get-sys-fonts-list`\n- `allow-intercept-keys`\n- `allow-lock-screen-orientation`\n- `allow-iap-initialize`\n- `allow-iap-fetch-products`\n- `allow-iap-purchase-product`\n- `allow-iap-restore-purchases`\n- `allow-get-system-color-scheme`"
}
]
}