diff options
| author | xengineering <me@xengineering.eu> | 2023-04-11 21:48:31 +0200 | 
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2023-04-11 21:48:31 +0200 | 
| commit | 4830acbae283d5f88b8e65aa187c054203fe4f20 (patch) | |
| tree | b53907a69d5890813662ca7aafe5d8947049e173 | |
| parent | e1bdf36d098df698ac5cff08debfef9c0f539d89 (diff) | |
| download | limox-4830acbae283d5f88b8e65aa187c054203fe4f20.tar limox-4830acbae283d5f88b8e65aa187c054203fe4f20.tar.zst limox-4830acbae283d5f88b8e65aa187c054203fe4f20.zip | |
Align editors in the middle
| -rw-r--r-- | go/main.go | 2 | 
1 files changed, 2 insertions, 0 deletions
| @@ -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)  			}, | 
