fix(window): use dark background instead of hidden window
Revert visible:false approach which broke WM buttons on Wayland. Instead, set html/body background to #0f0f0f (dark theme default) so the brief frame before webview renders shows a dark surface instead of a white flash.
This commit is contained in:
1 parent
f284ac92bc
commit
cb6c86324c
3 files changed
+2
-20
No files matched your search
+2
-2
@@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="en" style="background-color: #0f0f0f;">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||
@@ -7,7 +7,7 @@
|
||||
<title>QBZ</title>
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<body data-sveltekit-preload-data="hover" style="background-color: #0f0f0f; margin: 0;">
|
||||
<script>
|
||||
// Apply system titlebar state before first render to prevent flash
|
||||
// of custom title bar when system decorations are enabled.
|
||||
|
||||
Reference in new issue
Block a user