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_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_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_next" = "Next";
"lng_intro_finish" = "SIGN UP"; "lng_intro_finish" = "Sign up";
"lng_intro_submit" = "SUBMIT"; "lng_intro_submit" = "Submit";
"lng_photo_caption" = "Caption"; "lng_photo_caption" = "Caption";
"lng_photos_comment" = "Comment"; "lng_photos_comment" = "Comment";

View file

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

View file

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

View file

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

View file

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