5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 08:41:41 +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
import (
"github.com/leaanthony/mewn"
"github.com/wailsapp/wails"
"github.com/leaanthony/mewn"
"github.com/wailsapp/wails"
)
func basic() string {
return "Hello World!"
return "Hello World!"
}
func main() {
app := wails.CreateApp(&wails.AppConfig{
Width: 1024,
Height: 768,
Title: "{{.Name}}",
JS: mewn.String("./frontend/dist/app.js"),
CSS: mewn.String("./frontend/dist/app.css"),
})
app.Bind(basic)
app.Run()
app := wails.CreateApp(&wails.AppConfig{
Width: 1024,
Height: 768,
Title: "{{.Name}}",
JS: mewn.String("./frontend/dist/app.js"),
CSS: mewn.String("./frontend/dist/app.css"),
Colour: "#131313",
})
app.Bind(basic)
app.Run()
}