@tauri-apps/api@2.1.0
New Features
-
5c4b83084
(#11191 by @amrbashir) Improved support fordpi
module types to allow these types to be used without manual conversions withinvoke
:- Added
SERIALIZE_TO_IPC_FN
const incore
module which can be used to implement custom IPC serialization for types passed toinvoke
. - Added
Size
andPosition
classes indpi
module. - Implementd
SERIALIZE_TO_IPC_FN
method onPhysicalSize
,PhysicalPosition
,LogicalSize
andLogicalPosition
to convert it into a valid IPC-compatible value that can be deserialized correctly on the Rust side into its equivalent struct.
- Added
-
4d545ab3c
(#11486 by @amrbashir) AddedWebview::setBackgroundColor
,WebviewWindow::setBackgroundColor
APIs to set the window background color dynamically and abackgroundColor
window option to set the background color on window creation. -
cbc095ec5
(#11451 by @amrbashir) Addapp > windows > devtools
config option and when creating the webview from JS, to enable or disable devtools for a specific webview. -
2a75c64b5
(#11469 by @amrbashir) AddedwindowClassname
option, when constructing aWebview
orWebviewWindow
, to specify the name of the window class on Windows.
Bug Fixes
54cbf59b5
(#11441 by @amrbashir) Fix submenu created as a menu item instead of a submenu when created by using an object in theitems
field in the options object passed toMenu.new
orSubmenu.new
.
© 2024 Tauri Contributors. CC-BY / MIT