Adjusted button style in intro steps to style in settings steps.

This commit is contained in:
23rd 2022-12-27 21:14:06 +03:00
parent 690e1013cf
commit 5bf46c0e90
5 changed files with 10 additions and 11 deletions

View File

@ -308,11 +308,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_edit_caption_voice" = "Sorry, you can't edit your message while you're having an unsent voice message.";
"lng_intro_about" = "Welcome to the official Telegram Desktop app.\nIt's fast and secure.";
"lng_start_msgs" = "START MESSAGING";
"lng_start_msgs" = "Start messaging";
"lng_intro_next" = "NEXT";
"lng_intro_finish" = "SIGN UP";
"lng_intro_submit" = "SUBMIT";
"lng_intro_next" = "Next";
"lng_intro_finish" = "Sign up";
"lng_intro_submit" = "Submit";
"lng_photo_caption" = "Caption";
"lng_photos_comment" = "Comment";

View File

@ -577,9 +577,6 @@ colorResultInput: InputField(colorValueInput) {
changePhoneButton: RoundButton(defaultActiveButton) {
width: 256px;
height: 42px;
textTop: 11px;
font: boxButtonFont;
}
changePhoneButtonPadding: margins(0px, 32px, 0px, 44px);
changePhoneTitle: FlatLabel(boxTitle) {

View File

@ -84,10 +84,9 @@ introCoverDuration: 200;
introNextButton: RoundButton(defaultActiveButton) {
width: 300px;
height: 56px;
textTop: 17px;
font: font(17px semibold);
height: 42px;
textTop: 11px;
font: font(boxFontSize semibold);
}
introStepFieldTop: 96px;

View File

@ -128,6 +128,8 @@ Widget::Widget(
_back->hide(anim::type::instant);
_next->entity()->setClickedCallback([=] { getStep()->submit(); });
_next->entity()->setTextTransform(
Ui::RoundButton::TextTransform::NoTransform);
if (_changeLanguage) {
_changeLanguage->finishAnimating();

View File

@ -97,6 +97,7 @@ PasscodeLockWidget::PasscodeLockWidget(
connect(_passcode, &Ui::MaskedInputField::changed, [=] { changed(); });
connect(_passcode, &Ui::MaskedInputField::submitted, [=] { submit(); });
_submit->setTextTransform(Ui::RoundButton::TextTransform::NoTransform);
_submit->setClickedCallback([=] { submit(); });
_logout->setClickedCallback([=] {
window->showLogoutConfirmation();