5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 19:31:20 +08:00

Set window colour

This commit is contained in:
Lea Anthony 2019-02-21 08:23:35 +11:00
parent 073cdc3a55
commit 1c5284db3e
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -1,23 +1,24 @@
package main package main
import ( import (
"github.com/leaanthony/mewn" "github.com/leaanthony/mewn"
"github.com/wailsapp/wails" "github.com/wailsapp/wails"
) )
func basic() string { func basic() string {
return "Hello World!" return "Hello World!"
} }
func main() { func main() {
app := wails.CreateApp(&wails.AppConfig{ app := wails.CreateApp(&wails.AppConfig{
Width: 1024, Width: 1024,
Height: 768, Height: 768,
Title: "{{.Name}}", Title: "{{.Name}}",
JS: mewn.String("./frontend/dist/app.js"), JS: mewn.String("./frontend/dist/app.js"),
CSS: mewn.String("./frontend/dist/app.css"), CSS: mewn.String("./frontend/dist/app.css"),
}) Colour: "#131313",
app.Bind(basic) })
app.Run() app.Bind(basic)
app.Run()
} }