package main import ( "embed" _ "embed" "log" "github.com/wailsapp/wails/v3/pkg/application" ) //go:embed assets var assets embed.FS func main() { app := application.New(application.Options{ Name: "Frameless Demo", Description: "A demo of frameless windows", Assets: application.AssetOptions{ Handler: application.BundledAssetFileServer(assets), }, Mac: application.MacOptions{ ApplicationShouldTerminateAfterLastWindowClosed: true, }, }) app.NewWebviewWindowWithOptions(application.WebviewWindowOptions{ Frameless: true, KeyBindings: map[string]func(window *application.WebviewWindow){ "shift+ctrl+f": func(window *application.WebviewWindow) { window.Fullscreen() }, "shift+ctrl+u": func(window *application.WebviewWindow) { window.UnFullscreen() }, }, }) err := app.Run() if err != nil { log.Fatal(err.Error()) } }