@tauri-apps/api@2.1.0
-
5c4b83084(#11191 by @amrbashir) Improved support fordpimodule types to allow these types to be used without manual conversions withinvoke:- Added
SERIALIZE_TO_IPC_FNconst incoremodule which can be used to implement custom IPC serialization for types passed toinvoke. - Added
SizeandPositionclasses indpimodule. - Implementd
SERIALIZE_TO_IPC_FNmethod onPhysicalSize,PhysicalPosition,LogicalSizeandLogicalPositionto 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::setBackgroundColorAPIs to set the window background color dynamically and abackgroundColorwindow option to set the background color on window creation. -
cbc095ec5(#11451 by @amrbashir) Addapp > windows > devtoolsconfig option and when creating the webview from JS, to enable or disable devtools for a specific webview. -
2a75c64b5(#11469 by @amrbashir) AddedwindowClassnameoption, when constructing aWebvieworWebviewWindow, to specify the name of the window class on Windows.
54cbf59b5(#11441 by @amrbashir) Fix submenu created as a menu item instead of a submenu when created by using an object in theitemsfield in the options object passed toMenu.neworSubmenu.new.
© 2025 Tauri Contributors. CC-BY / MIT