summaryrefslogtreecommitdiff
path: root/go/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-02-20 21:08:11 +0100
committerxengineering <me@xengineering.eu>2023-02-20 21:08:11 +0100
commit21e3b2d1c43fccc5b5ba7449790e2dd2769de8f3 (patch)
tree936f0f3b99b4c84a476a274ce8b381ef9c0bfcf6 /go/main.go
parent2ab06fbc7f5b2ed93ee8668ac6f3ab7c1e15130c (diff)
downloadlimox-21e3b2d1c43fccc5b5ba7449790e2dd2769de8f3.tar
limox-21e3b2d1c43fccc5b5ba7449790e2dd2769de8f3.tar.zst
limox-21e3b2d1c43fccc5b5ba7449790e2dd2769de8f3.zip
Adapt Gio example to LimoX
Diffstat (limited to 'go/main.go')
-rw-r--r--go/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/go/main.go b/go/main.go
index 5c4c213..ab6c7fb 100644
--- a/go/main.go
+++ b/go/main.go
@@ -16,7 +16,7 @@ import (
func main() {
go func() {
- w := app.NewWindow()
+ w := app.NewWindow(app.Title("LimoX"))
err := run(w)
if err != nil {
log.Fatal(err)
@@ -37,8 +37,8 @@ func run(w *app.Window) error {
case system.FrameEvent:
gtx := layout.NewContext(&ops, e)
- title := material.H1(th, "Hello, Gio")
- maroon := color.NRGBA{R: 127, G: 0, B: 0, A: 255}
+ title := material.H1(th, "disconnected")
+ maroon := color.NRGBA{R: 0, G: 212, B: 0, A: 255}
title.Color = maroon
title.Alignment = text.Middle
title.Layout(gtx)