mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
[windows] Support drawing a frame for frameless to support hiding the titlebar
This commit is contained in:
@@ -41,9 +41,10 @@ func main() {
|
||||
app,
|
||||
},
|
||||
Windows: &windows.Options{
|
||||
WebviewIsTransparent: false,
|
||||
WindowIsTranslucent: false,
|
||||
DisableWindowIcon: false,
|
||||
WebviewIsTransparent: false,
|
||||
WindowIsTranslucent: false,
|
||||
DisableWindowIcon: false,
|
||||
EnableFramelessBorder: false,
|
||||
},
|
||||
Mac: &mac.Options{
|
||||
TitleBar: &mac.TitleBar{
|
||||
@@ -316,8 +317,16 @@ Name: DisableWindowIcon
|
||||
|
||||
Type: bool
|
||||
|
||||
Setting this to true will remove the icon in the top left corner of the title bar.
|
||||
Setting this to `true` will remove the icon in the top left corner of the title bar.
|
||||
|
||||
### EnableFramelessBorder
|
||||
|
||||
Name: EnableFramelessBorder
|
||||
|
||||
Type: bool
|
||||
|
||||
Setting this to `true` will add a border around the window if [Frameless](#Frameless) has been activated.
|
||||
This allows hiding the title bar but still having a border around the window.
|
||||
|
||||
## Mac Specific Options
|
||||
|
||||
|
||||
@@ -40,9 +40,10 @@ func main() {
|
||||
app,
|
||||
},
|
||||
Windows: &windows.Options{
|
||||
WebviewIsTransparent: false,
|
||||
WindowIsTranslucent: false,
|
||||
DisableWindowIcon: false,
|
||||
WebviewIsTransparent: false,
|
||||
WindowIsTranslucent: false,
|
||||
DisableWindowIcon: false,
|
||||
EnableFramelessBorder: false,
|
||||
},
|
||||
Mac: &mac.Options{
|
||||
TitleBar: &mac.TitleBar{
|
||||
|
||||
Reference in New Issue
Block a user