mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
[v3 linux] match windows transparency logic
This commit is contained in:
parent
130aab3598
commit
a6163849c6
1 changed files with 5 additions and 4 deletions
|
|
@ -378,7 +378,11 @@ func (w *linuxWebviewWindow) run() {
|
|||
}
|
||||
w.setSize(w.parent.options.Width, w.parent.options.Height)
|
||||
w.setZoom(w.parent.options.Zoom)
|
||||
w.setBackgroundColour(w.parent.options.BackgroundColour)
|
||||
if w.parent.options.BackgroundType != BackgroundTypeSolid {
|
||||
w.setTransparent()
|
||||
w.setBackgroundColour(w.parent.options.BackgroundColour)
|
||||
}
|
||||
|
||||
w.setFrameless(w.parent.options.Frameless)
|
||||
|
||||
if w.parent.options.X != 0 || w.parent.options.Y != 0 {
|
||||
|
|
@ -428,9 +432,6 @@ func (w *linuxWebviewWindow) setTransparent() {
|
|||
}
|
||||
|
||||
func (w *linuxWebviewWindow) setBackgroundColour(colour RGBA) {
|
||||
if colour.Alpha < 255 {
|
||||
w.setTransparent()
|
||||
}
|
||||
windowSetBackgroundColour(w.vbox, w.webview, colour)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue