5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 18:42:23 +08:00
wails/v2/pkg/options/options.go
Lea Anthony 3f3094f0aa
Support vibrancy and transparency for webview
Options Colour -> RGBA
2020-09-30 07:25:15 +10:00

34 lines
617 B
Go

package options
import (
"log"
"github.com/imdario/mergo"
"github.com/wailsapp/wails/v2/pkg/options/mac"
)
// App contains options for creating the App
type App struct {
Title string
Width int
Height int
DisableResize bool
Fullscreen bool
MinWidth int
MinHeight int
MaxWidth int
MaxHeight int
StartHidden bool
DevTools bool
RGBA int
Mac *mac.Options
}
// MergeDefaults will set the minimum default values for an application
func (a *App) MergeDefaults() {
err := mergo.Merge(a, Default)
if err != nil {
log.Fatal(err)
}
}