mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-12 13:42:08 +08:00
The window and webview backgrounds retain their startup colors when the resolved theme changes. With Tauri's full-size content view, these colors affect the native titlebar even after setTheme succeeds. Synchronize both backgrounds through WebviewWindow.setBackgroundColor on macOS, reuse the startup palette, and allow both background commands. Wry commit 1d1b870 implemented macOS background colors through WKWebView.underPageBackgroundColor. CVR adopted that behavior in7d29c0c6(#6318), making the fixed startup colors from683667f8(#5637) effective on macOS. Closes #8205 Closes #7968 Closes #8272 Closes #8625 Upstream: https://github.com/tauri-apps/wry/commit/1d1b8707665b4638e040dde7a88cd33d77ba2ebc Co-authored-by: qzda <qinzhidaoa@gmail.com> Co-authored-by: Vickers Zhu <vickerszhu@163.com>
32 lines
843 B
JSON
Executable File
32 lines
843 B
JSON
Executable File
{
|
|
"identifier": "desktop-capability",
|
|
"platforms": ["macOS", "windows", "linux"],
|
|
"webviews": ["main"],
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"global-shortcut:default",
|
|
"updater:default",
|
|
"dialog:default",
|
|
"dialog:allow-ask",
|
|
"dialog:allow-message",
|
|
"updater:default",
|
|
"updater:allow-check",
|
|
"updater:allow-download-and-install",
|
|
"deep-link:default",
|
|
"autostart:allow-enable",
|
|
"autostart:allow-disable",
|
|
"autostart:allow-is-enabled",
|
|
"core:window:allow-set-theme",
|
|
"core:window:allow-set-background-color",
|
|
"core:webview:allow-set-webview-background-color",
|
|
"notification:default",
|
|
"http:default",
|
|
"http:allow-fetch",
|
|
{
|
|
"identifier": "http:default",
|
|
"allow": [{ "url": "https://*/*" }, { "url": "http://*/*" }]
|
|
},
|
|
"mihomo:default"
|
|
]
|
|
}
|