[windows] support runtime.WindowSetRGBA

This commit is contained in:
Lea Anthony
2021-09-12 16:32:43 +10:00
parent c9f93cd313
commit 3c0da9fd15
15 changed files with 178 additions and 96 deletions

View File

@@ -2,6 +2,7 @@ package runtime
import (
"context"
"github.com/wailsapp/wails/v2/pkg/options"
)
// WindowSetTitle sets the title of the window
@@ -93,3 +94,8 @@ func WindowUnminimise(ctx context.Context) {
appFrontend := getFrontend(ctx)
appFrontend.WindowUnminimise()
}
func WindowSetRGBA(ctx context.Context, col *options.RGBA) {
appFrontend := getFrontend(ctx)
appFrontend.WindowSetRGBA(col)
}