mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'bbenton91/fix-password-length' into 'master'
Changed password scale to allow 34 characters. Fixes issue #743 Closes #743 See merge request veloren/veloren!1464
This commit is contained in:
commit
a556d2b5e7
@ -639,9 +639,10 @@ impl<'a> MainMenuUi {
|
||||
for event in TextBox::new(&self.password)
|
||||
.w_h(290.0 * scale, 30.0* scale)
|
||||
.mid_bottom_with_margin_on(self.ids.password_bg, 10.0* scale)
|
||||
// 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))
|
||||
// The text is smaller to allow longer passwords, conrod limits text length
|
||||
// Basically the lower the scale of the font, the smaller and more characters we can fit
|
||||
// At the time of this commit change, scale of 10 should fit 34 characters
|
||||
.font_size(self.fonts.cyri.scale(10))
|
||||
.font_id(self.fonts.cyri.conrod_id)
|
||||
.text_color(TEXT_COLOR)
|
||||
// transparent background
|
||||
|
Loading…
Reference in New Issue
Block a user