From f96f9d5e58fb181d6f2789562471d015d38f4a4d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Mar 2018 02:59:54 +0300 Subject: Add own skin for pincode keyboard buttons. Also resize pincode dialog if pincode control too big. --- src/gui/windows/pincodedialog.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/windows') diff --git a/src/gui/windows/pincodedialog.cpp b/src/gui/windows/pincodedialog.cpp index 223ad69c0..0e79774ac 100644 --- a/src/gui/windows/pincodedialog.cpp +++ b/src/gui/windows/pincodedialog.cpp @@ -75,6 +75,8 @@ PincodeDialog::PincodeDialog(const std::string &restrict title, int width = getFont()->getWidth(title); if (width < textLabel->getWidth()) width = textLabel->getWidth(); + if (width < mPincode->getWidth()) + width = mPincode->getWidth(); reflowLayout(CAST_S32(width + 20), 0); updateButtons(); } -- cgit v1.2.3-70-g09d2