mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
ff4894e454
@ -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