diff options
-rw-r--r-- | go/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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( |