From 1134c81cdcf0b7115024a1ac3f150284c18f44fb Mon Sep 17 00:00:00 2001 From: Roman Sirokov Date: Thu, 18 Apr 2024 21:11:06 +0300 Subject: [PATCH] Update documentation --- docs/CHANGELOG.md | 22 ++++++++++++++++++++++ docs/README.md | 2 +- docs/guide/api.md | 3 ++- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index f9ec3329..7ce139c1 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog + +## 5.1 + +_Released 07/04/2024_ + +### ⚡ Features + +- `All` Clear all the cookies (including HttpOnly) with `window.clear_cookies()`. Sponsored by [TBS](https://tbsit360.com/) +- `All` pywebview event handler can now have an optional `window` parameter that holds an instance of the `Window` object that triggered the event. + +### 🚀 Improvements + +- `Windows` Add window shadow with `webview.create_window(..., shadow=True)`. Thanks @yllhwa + +### 🐞 Bug fixes + +- `Cocoa` Fix showing window +- `QT` Fix fetching cookies in private mode +- `QT` Fix blank screen in Pop! OS. Thanks @ysfchn. +- `GTK` Fix frameless windows having a hard-coded minimum size. Thanks @coffeejunk + + ## 5.0.5 _Released 07/03/2024_ diff --git a/docs/README.md b/docs/README.md index 871a75bd..0f6dabc7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -8,7 +8,7 @@ footer: BSD Licensed | Copyright © 2014–present Roman Sirokov ---
-Current version: 5.0.5
+Current version: 5.1
What's new
diff --git a/docs/guide/api.md b/docs/guide/api.md index 52690969..04b44a91 100644 --- a/docs/guide/api.md +++ b/docs/guide/api.md @@ -7,7 +7,7 @@ webview.create_window(title, url=None, html=None, js_api=None, width=800, height=600, x=None, y=None, screen=None, resizable=True, fullscreen=False, min_size=(200, 100), hidden=False, frameless=False, - easy_drag=True, focus=True, minimized=False, maximized=False + easy_drag=True, shadow=False, focus=True, minimized=False, maximized=False, on_top=False, confirm_close=False, background_color='#FFFFFF', transparent=False, text_select=False, zoomable=False, draggable=False, server=http.BottleServer, server_args={}, @@ -31,6 +31,7 @@ Create a new _pywebview_ window and returns its instance. Can be used to create * `hidden` - Create a window hidden by default. Default is False * `frameless` - Create a frameless window. Default is False. * `easy_drag` - Easy drag mode for frameless windows. Window can be moved by dragging any point. Default is True. Note that easy_drag has no effect with normal windows. To control dragging on an element basis, see [drag area](/guide/api.html#drag-area) for details. +* `shadow` - Add window shadow. Default is False. _Windows only_. * `focus` - Create a non-focusable window if False. Default is True. * `minimized` - Display window minimized * `maximized` - Display window maximized