mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
* feat: add windows options supports `IsPinchZoomEnabled` configuration(#2021) * refactor: modify `IsPinchZoomEnabled` to `DisablePinchZoom` ensure default behavior is consistent * docs: add `DisablePinchZoom` to changelog * docs: update the description of `DisablePinchZoom` attributes in the document --------- Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
@@ -543,6 +543,10 @@ func (f *Frontend) setupChromium() {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
err = settings.PutIsPinchZoomEnabled(!opts.DisablePinchZoom)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
err = settings.PutIsStatusBarEnabled(false)
|
||||
|
||||
@@ -68,6 +68,8 @@ type Options struct {
|
||||
IsZoomControlEnabled bool
|
||||
ZoomFactor float64
|
||||
|
||||
DisablePinchZoom bool
|
||||
|
||||
// Disable all window decorations in Frameless mode, which means no "Aero Shadow" and no "Rounded Corner" will be shown.
|
||||
// "Rounded Corners" are only available on Windows 11.
|
||||
DisableFramelessWindowDecorations bool
|
||||
|
||||
Reference in New Issue
Block a user