summaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-04-11 21:48:31 +0200
committerxengineering <me@xengineering.eu>2023-04-11 21:48:31 +0200
commit4830acbae283d5f88b8e65aa187c054203fe4f20 (patch)
treeb53907a69d5890813662ca7aafe5d8947049e173 /go
parente1bdf36d098df698ac5cff08debfef9c0f539d89 (diff)
downloadlimox-4830acbae283d5f88b8e65aa187c054203fe4f20.tar
limox-4830acbae283d5f88b8e65aa187c054203fe4f20.tar.zst
limox-4830acbae283d5f88b8e65aa187c054203fe4f20.zip
Align editors in the middle
Diffstat (limited to 'go')
-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)
},