// main.go package main import ( "embed" "fmt" "github.com/wailsapp/wails/v2" "github.com/wailsapp/wails/v2/pkg/logger" "github.com/wailsapp/wails/v2/pkg/options" "github.com/wailsapp/wails/v2/pkg/options/assetserver" "github.com/wailsapp/wails/v2/pkg/options/linux" "github.com/wailsapp/wails/v2/pkg/options/mac" "github.com/wailsapp/wails/v2/pkg/options/windows" ) //go:embed all:frontend/dist var assets embed.FS func main() { app := NewApp() err := wails.Run(&options.App{ Title: "Notenverwaltung", Width: 1400, Height: 1000, MinWidth: 1200, MinHeight: 1000, DisableResize: false, Fullscreen: false, WindowStartState: options.Maximised, StartHidden: false, HideWindowOnClose: false, AssetServer: &assetserver.Options{ Assets: assets, }, Logger: nil, LogLevel: logger.DEBUG, LogLevelProduction: logger.ERROR, BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1}, OnStartup: app.startup, Bind: []any{ app, }, EnableDefaultContextMenu: false, EnableFraudulentWebsiteDetection: false, Windows: &windows.Options{ WebviewIsTransparent: false, WindowIsTranslucent: false, BackdropType: windows.Mica, DisablePinchZoom: false, DisableWindowIcon: false, DisableFramelessWindowDecorations: false, WebviewUserDataPath: "", WebviewBrowserPath: "", Theme: windows.SystemDefault, }, Mac: &mac.Options{ TitleBar: &mac.TitleBar{ TitlebarAppearsTransparent: true, HideTitle: false, HideTitleBar: false, FullSizeContent: false, UseToolbar: false, HideToolbarSeparator: true, }, Appearance: mac.NSAppearanceNameDarkAqua, WebviewIsTransparent: true, WindowIsTranslucent: false, About: &mac.AboutInfo{ Title: "Notenverwaltung", Message: "© 2024 Pata1704", }, }, Linux: &linux.Options{ WindowIsTranslucent: false, WebviewGpuPolicy: linux.WebviewGpuPolicyAlways, ProgramName: "Notenverwaltung", }, Debug: options.Debug{ OpenInspectorOnStartup: false, }, }) if err != nil { fmt.Println("Error:", err) } }