-
-
Notifications
You must be signed in to change notification settings - Fork 596
Description
It would be nice to have support for background transparency to support use cases such as splash screens, desktop widgets, and allow for greater customization of window appearance.
I did a bit of tinkering and was able to get this working in both Gtk and Qt, and I believe it is possible to extend this functionality to other platforms. Currently I have support for transparency included as an optional flag in the window constructor, which can be called as window.create_window("title","url",transparent=True)
I've pushed my code to https://github.com/nhhollander/pywebview/tree/transparent_windows, and my changes are visible at https://github.com/nhhollander/pywebview/commit/cb939401e742ca9c38386229b6b8c90061b3802e.
I have included a couple examples I made quickly to demonstrate potential use cases.
Examples
Practicalities
I am willing to work in this issue myself, however I do not have a Windows or Mac OS system to test on at this time.