From cdd88aa3bdd897257c16ea83ef93925dde9ce8d1 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 11 Apr 2023 21:19:57 +0200 Subject: Fix variable name --- go/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'go/main.go') diff --git a/go/main.go b/go/main.go index 108ebc9..8d61cf9 100644 --- a/go/main.go +++ b/go/main.go @@ -73,10 +73,10 @@ func (l *Limox) draw(e system.FrameEvent) { flex.Layout(gtx, layout.Rigid( func(gtx layout.Context) layout.Dimensions { - stateLabel := material.H2(l.Theme, "LimoX") - stateLabel.Color = color.NRGBA{R: 20, G: 20, B: 20, A: 255} - stateLabel.Alignment = text.Middle - return stateLabel.Layout(gtx) + h2 := material.H2(l.Theme, "LimoX") + h2.Color = color.NRGBA{R: 20, G: 20, B: 20, A: 255} + h2.Alignment = text.Middle + return h2.Layout(gtx) }, ), layout.Rigid( -- cgit v1.2.3-70-g09d2