Replies: 4 comments 1 reply
-
is there no way yet? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@r0x0r can you add something like this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Dark mode is not implemented, but it could be done. Contributions welcomed. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you are using winforms you can do this: import ctypes
from ctypes import wintypes
import webview
from webview.platforms.winforms import BrowserView
window = webview.create_window("")
dwmapi = ctypes.windll.LoadLibrary("dwmapi")
window.events.shown += lambda: dwmapi.DwmSetWindowAttribute(
BrowserView.instances[window.uid].Handle.ToInt32(),
20,
ctypes.byref(ctypes.c_bool(True)),
ctypes.sizeof(wintypes.BOOL),
)
webview.start() If you are using a different renderer you'll need to find a different way to get the window handle. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my current app, the titlebar looks light
https://i.imgur.com/QyI9Ifx.png
Is there any way to get it to look dark, like it does in this other programs?
https://i.imgur.com/eJqG5h8.png
(Using Windows 11, Python 3.11, pywebview 4.2.2)
Beta Was this translation helpful? Give feedback.
All reactions