mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
* feat(options): add ContentProtection bool config to macos and windows options * feat(darwin): implement ContentProtection for darwin * feat(windows): implement ContentProtection for windows * chore(website): add feature to changelog * feat(examples): add an example showcasing the ContentPrivacy flag * chore(examples): update readme * fix(example): format and build * fix(winc): rename to wda and add version check * chore(reference): add docs for ContentProtection * fix(darwin): future-proof setting the sharing type * fix(example): wording consistency * chore(examples): remove privatewindow example --------- Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
31 lines
805 B
Go
31 lines
805 B
Go
package mac
|
|
|
|
//type ActivationPolicy int
|
|
//
|
|
//const (
|
|
// NSApplicationActivationPolicyRegular ActivationPolicy = 0
|
|
// NSApplicationActivationPolicyAccessory ActivationPolicy = 1
|
|
// NSApplicationActivationPolicyProhibited ActivationPolicy = 2
|
|
//)
|
|
|
|
type AboutInfo struct {
|
|
Title string
|
|
Message string
|
|
Icon []byte
|
|
}
|
|
|
|
// Options are options specific to Mac
|
|
type Options struct {
|
|
TitleBar *TitleBar
|
|
Appearance AppearanceType
|
|
ContentProtection bool
|
|
WebviewIsTransparent bool
|
|
WindowIsTranslucent bool
|
|
Preferences *Preferences
|
|
DisableZoom bool
|
|
// ActivationPolicy ActivationPolicy
|
|
About *AboutInfo
|
|
OnFileOpen func(filePath string) `json:"-"`
|
|
OnUrlOpen func(filePath string) `json:"-"`
|
|
// URLHandlers map[string]func(string)
|
|
}
|