mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
new flat boxes started
This commit is contained in:
@@ -249,7 +249,7 @@ bool IntroPwdCheck::codeSubmitFail(const RPCError &error) {
|
||||
}
|
||||
|
||||
void IntroPwdCheck::recoverStarted(const MTPauth_PasswordRecovery &result) {
|
||||
_emailPattern = st::introFont->m.elidedText(lng_signin_recover_hint(lt_recover_email, qs(result.c_auth_passwordRecovery().vemail_pattern)), Qt::ElideRight, textRect.width());
|
||||
_emailPattern = st::introFont->elided(lng_signin_recover_hint(lt_recover_email, qs(result.c_auth_passwordRecovery().vemail_pattern)), textRect.width());
|
||||
update();
|
||||
}
|
||||
|
||||
@@ -283,14 +283,14 @@ void IntroPwdCheck::onToRecover() {
|
||||
}
|
||||
update();
|
||||
} else {
|
||||
ConfirmBox *box = new ConfirmBox(lang(lng_signin_no_email_forgot), true);
|
||||
ConfirmBox *box = new InformBox(lang(lng_signin_no_email_forgot));
|
||||
App::wnd()->showLayer(box);
|
||||
connect(box, SIGNAL(destroyed(QObject*)), this, SLOT(onToReset()));
|
||||
}
|
||||
}
|
||||
|
||||
void IntroPwdCheck::onToPassword() {
|
||||
ConfirmBox *box = new ConfirmBox(lang(lng_signin_no_email_forgot), true);
|
||||
ConfirmBox *box = new InformBox(lang(lng_signin_cant_email_forgot));
|
||||
App::wnd()->showLayer(box);
|
||||
connect(box, SIGNAL(destroyed(QObject*)), this, SLOT(onToReset()));
|
||||
}
|
||||
@@ -312,7 +312,7 @@ void IntroPwdCheck::onToReset() {
|
||||
|
||||
void IntroPwdCheck::onReset() {
|
||||
if (sentRequest) return;
|
||||
ConfirmBox *box = new ConfirmBox(lang(lng_sigin_sure_reset), lang(lng_sigin_reset), QString(), st::btnRedDone);
|
||||
ConfirmBox *box = new ConfirmBox(lang(lng_signin_sure_reset), lang(lng_signin_reset), st::attentionBoxButton);
|
||||
connect(box, SIGNAL(confirmed()), this, SLOT(onResetSure()));
|
||||
App::wnd()->showLayer(box);
|
||||
}
|
||||
|
@@ -49,7 +49,7 @@ _next(this, lang(lng_start_msgs), st::btnIntroNext) {
|
||||
_changeLang.show();
|
||||
}
|
||||
|
||||
_headerWidth = st::introHeaderFont->m.width(qsl("Telegram Desktop"));
|
||||
_headerWidth = st::introHeaderFont->width(qsl("Telegram Desktop"));
|
||||
|
||||
setGeometry(parent->innerRect());
|
||||
|
||||
|
Reference in New Issue
Block a user