Replaced RoundButton text transform constructor arg with setter.

This commit is contained in:
23rd
2026-04-06 16:35:37 +03:00
parent 494833236f
commit 9cb41f4517
26 changed files with 84 additions and 82 deletions
@@ -235,8 +235,8 @@ PanelEditContact::PanelEditContact(
, _done(
this,
tr::lng_passport_save_value(),
st::passportPanelSaveValue,
Ui::RoundButtonTextToUpper) {
st::passportPanelSaveValue) {
_done->setTextTransform(Ui::RoundButtonTextTransform::ToUpper);
setupControls(data, existing);
}
@@ -221,8 +221,8 @@ PanelEditDocument::PanelEditDocument(
, _done(
this,
tr::lng_passport_save_value(),
st::passportPanelSaveValue,
Ui::RoundButtonTextToUpper) {
st::passportPanelSaveValue) {
_done->setTextTransform(Ui::RoundButtonTextTransform::ToUpper);
setupControls(
&error,
&data,
@@ -248,8 +248,8 @@ PanelEditDocument::PanelEditDocument(
, _done(
this,
tr::lng_passport_save_value(),
st::passportPanelSaveValue,
Ui::RoundButtonTextToUpper) {
st::passportPanelSaveValue) {
_done->setTextTransform(Ui::RoundButtonTextTransform::ToUpper);
setupControls(
nullptr,
nullptr,
@@ -272,8 +272,8 @@ PanelEditDocument::PanelEditDocument(
, _done(
this,
tr::lng_passport_save_value(),
st::passportPanelSaveValue,
Ui::RoundButtonTextToUpper) {
st::passportPanelSaveValue) {
_done->setTextTransform(Ui::RoundButtonTextTransform::ToUpper);
setupControls(&error, &data, nullptr, nullptr, {}, {}, {});
}
@@ -326,8 +326,8 @@ ScanButton::ScanButton(
object_ptr<Ui::RoundButton>(
this,
tr::lng_passport_delete_scan_undo(),
_st.restore,
Ui::RoundButtonTextToUpper)) {
_st.restore)) {
_restore->entity()->setTextTransform(Ui::RoundButtonTextTransform::ToUpper);
_delete->toggle(!deleted, anim::type::instant);
_restore->toggle(deleted, anim::type::instant);
}
@@ -40,8 +40,8 @@ PanelForm::PanelForm(
, _submit(
this,
tr::lng_passport_authorize(),
st::passportPanelAuthorize,
Ui::RoundButtonTextToUpper) {
st::passportPanelAuthorize) {
_submit->setTextTransform(Ui::RoundButtonTextTransform::ToUpper);
setupControls();
}
@@ -47,8 +47,9 @@ PanelAskPassword::PanelAskPassword(
this,
st::defaultInputField,
tr::lng_passport_password_placeholder())
, _submit(this, tr::lng_passport_next(), st::passportPasswordSubmit, Ui::RoundButtonTextToUpper)
, _submit(this, tr::lng_passport_next(), st::passportPasswordSubmit)
, _forgot(this, tr::lng_signin_recover(tr::now), st::defaultLinkButton) {
_submit->setTextTransform(Ui::RoundButtonTextTransform::ToUpper);
connect(_password, &Ui::PasswordInput::submitted, this, [=] {
submit();
});
@@ -227,9 +228,9 @@ void PanelNoPassword::refreshBottom() {
object_ptr<Ui::RoundButton>(
_inner,
tr::lng_passport_password_create(),
st::defaultBoxButton,
Ui::RoundButtonTextToUpper),
st::defaultBoxButton),
style::al_top);
button->setTextTransform(Ui::RoundButtonTextTransform::ToUpper);
button->addClickHandler([=] {
_controller->setupPassword();
});