mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Add translucency effects
This commit is contained in:
parent
7ef6f7d2b9
commit
72a0db3938
2 changed files with 8 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
<title>Systray Example</title>
|
||||
<style>
|
||||
html {
|
||||
background-color: rgba(27, 38, 54, 1);
|
||||
background-color: rgba(27, 38, 54, 0.75);
|
||||
text-align: center;
|
||||
color: white;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import (
|
|||
"github.com/wailsapp/wails/v2/pkg/application"
|
||||
"github.com/wailsapp/wails/v2/pkg/menu"
|
||||
"github.com/wailsapp/wails/v2/pkg/options"
|
||||
"github.com/wailsapp/wails/v2/pkg/options/windows"
|
||||
"github.com/wailsapp/wails/v2/pkg/runtime"
|
||||
)
|
||||
|
||||
|
|
@ -31,6 +32,12 @@ func main() {
|
|||
OnStartup: func(ctx context.Context) {
|
||||
runtimeContext = ctx
|
||||
},
|
||||
Windows: &windows.Options{
|
||||
BackdropType: windows.Acrylic,
|
||||
WindowIsTranslucent: true,
|
||||
WebviewIsTransparent: true,
|
||||
DisableWindowIcon: true,
|
||||
},
|
||||
})
|
||||
|
||||
// ------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue