mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Allow passwords with up to 35 characters
This commit is contained in:
parent
198b8a4994
commit
4bd7e5ab67
@ -535,7 +535,9 @@ impl MainMenuUi {
|
||||
for event in TextBox::new(&self.password)
|
||||
.w_h(290.0, 30.0)
|
||||
.mid_bottom_with_margin_on(self.ids.password_bg, 17.0)
|
||||
.font_size(self.fonts.cyri.scale(22))
|
||||
// the text is smaller to allow longer passwords, conrod limits text length
|
||||
// this allows 35 characters but can be increased, approximate formula: 420 / scale = length
|
||||
.font_size(self.fonts.cyri.scale(12))
|
||||
.font_id(self.fonts.cyri.conrod_id)
|
||||
.text_color(TEXT_COLOR)
|
||||
// transparent background
|
||||
|
Loading…
Reference in New Issue
Block a user