summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/go/main.go b/go/main.go
index d055aa8..aad9a29 100644
--- a/go/main.go
+++ b/go/main.go
@@ -93,12 +93,14 @@ func (l *Limox) draw(e system.FrameEvent) {
layout.Rigid(
func(gtx layout.Context) layout.Dimensions {
jid := material.Editor(l.Theme, &l.JidEditor, "user@example.com")
+ jid.Editor.Alignment = text.Middle
return jid.Layout(gtx)
},
),
layout.Rigid(
func(gtx layout.Context) layout.Dimensions {
pwd := material.Editor(l.Theme, &l.PwdEditor, "mySafePassword")
+ pwd.Editor.Alignment = text.Middle
pwd.Editor.Mask = '*'
return pwd.Layout(gtx)
},