Allow passwords with up to 35 characters

This commit is contained in:
Olexorus 2020-04-12 13:40:52 +02:00
parent 198b8a4994
commit 4bd7e5ab67

View File

@ -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