Merge branch 'olexorus/password_length' into 'master'

Allow passwords with up to 35 characters

See merge request veloren/veloren!905
This commit is contained in:
Songtronix 2020-04-12 13:41:17 +00:00
commit ff4894e454

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