mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 04:05:12 -07:00
Initial support for menus
This commit is contained in:
@@ -2,6 +2,7 @@ package options
|
||||
|
||||
import (
|
||||
"github.com/wailsapp/wails/v2/pkg/logger"
|
||||
"github.com/wailsapp/wails/v2/pkg/menu"
|
||||
"github.com/wailsapp/wails/v2/pkg/options/mac"
|
||||
)
|
||||
|
||||
@@ -17,6 +18,7 @@ var Default = &App{
|
||||
Appearance: mac.DefaultAppearance,
|
||||
WebviewIsTransparent: false,
|
||||
WindowBackgroundIsTranslucent: false,
|
||||
Menu: menu.DefaultMacMenu(),
|
||||
},
|
||||
Logger: logger.NewDefaultLogger(),
|
||||
LogLevel: logger.INFO,
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
package mac
|
||||
|
||||
// Options are options speific to Mac
|
||||
import "github.com/wailsapp/wails/v2/pkg/menu"
|
||||
|
||||
// Options are options specific to Mac
|
||||
type Options struct {
|
||||
TitleBar *TitleBar
|
||||
Appearance AppearanceType
|
||||
WebviewIsTransparent bool
|
||||
WindowBackgroundIsTranslucent bool
|
||||
Menu *menu.Menu
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user