Don't display full username address in placeholder

This commit is contained in:
The Stranjer 2020-03-20 09:42:24 -04:00
parent ae3e7e2ad9
commit 4904618f8d

View file

@ -75,7 +75,7 @@ func (ui *GomuksUI) NewLoginView() mauview.Component {
hs := ui.gmx.Config().HS hs := ui.gmx.Config().HS
view.homeserver.SetPlaceholder("https://example.com").SetText(hs) view.homeserver.SetPlaceholder("https://example.com").SetText(hs)
view.username.SetPlaceholder("@user:example.com").SetText(ui.gmx.Config().UserID) view.username.SetPlaceholder("exampleuser").SetText(ui.gmx.Config().UserID)
view.password.SetPlaceholder("correct horse battery staple").SetMaskCharacter('*') view.password.SetPlaceholder("correct horse battery staple").SetMaskCharacter('*')
view.quitButton.SetOnClick(func() { ui.gmx.Stop(true) }).SetBackgroundColor(tcell.ColorDarkCyan) view.quitButton.SetOnClick(func() { ui.gmx.Stop(true) }).SetBackgroundColor(tcell.ColorDarkCyan)