Closed chrisljm closed 3 years ago
No can do. Generally it is a bad practice to style window title bar.
Ok, I get it, thanks
So how come there are lots of UWP apps with a colored title bar (even some made by Microsoft)?
My bad, seems like I have fallen behind Windows's best practices. Indeed, UWP has got this ability, while pywebview is based on Windows Forms. I reckon the best way to approach this would be just to expose WinForm's GUI objects via a window object. This way it would give user flexibility of accessing native gui API for cases like this. Maybe something like this.
w = webview.create_window(...)
w.native.application # this would point to System.Windows.Forms.Application
w.native.window # this would point to System.Windows.Forms.Form
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The message to post on the issue when closing it. If none provided, will not comment when closing an issue.
Now I can set title and icon on the title bar, but i also want to change 'font-color' and 'background-color', could I do that?