mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Added text transform to RoundButton as mandatory argument.
This commit is contained in:
@@ -141,15 +141,14 @@ void VerifyBox::setupControls(
|
||||
object_ptr<Ui::RoundButton>(
|
||||
_content,
|
||||
tr::lng_intro_fragment_button(),
|
||||
st::fragmentBoxButton),
|
||||
st::fragmentBoxButton,
|
||||
Ui::RoundButtonTextNoTransform),
|
||||
small);
|
||||
_content->widthValue(
|
||||
) | rpl::on_next([=](int w) {
|
||||
button->setFullWidth(w - small.left() - small.right());
|
||||
}, button->lifetime());
|
||||
button->setClickedCallback([=] { ::File::OpenUrl(openUrl); });
|
||||
button->setTextTransform(
|
||||
Ui::RoundButton::TextTransform::NoTransform);
|
||||
}
|
||||
if (resend) {
|
||||
auto link = TextWithEntities{ tr::lng_cloud_password_resend(tr::now) };
|
||||
@@ -237,7 +236,8 @@ PanelEditContact::PanelEditContact(
|
||||
, _done(
|
||||
this,
|
||||
tr::lng_passport_save_value(),
|
||||
st::passportPanelSaveValue) {
|
||||
st::passportPanelSaveValue,
|
||||
Ui::RoundButtonTextToUpper) {
|
||||
setupControls(data, existing);
|
||||
}
|
||||
|
||||
|
||||
@@ -221,7 +221,8 @@ PanelEditDocument::PanelEditDocument(
|
||||
, _done(
|
||||
this,
|
||||
tr::lng_passport_save_value(),
|
||||
st::passportPanelSaveValue) {
|
||||
st::passportPanelSaveValue,
|
||||
Ui::RoundButtonTextToUpper) {
|
||||
setupControls(
|
||||
&error,
|
||||
&data,
|
||||
@@ -247,7 +248,8 @@ PanelEditDocument::PanelEditDocument(
|
||||
, _done(
|
||||
this,
|
||||
tr::lng_passport_save_value(),
|
||||
st::passportPanelSaveValue) {
|
||||
st::passportPanelSaveValue,
|
||||
Ui::RoundButtonTextToUpper) {
|
||||
setupControls(
|
||||
nullptr,
|
||||
nullptr,
|
||||
@@ -270,7 +272,8 @@ PanelEditDocument::PanelEditDocument(
|
||||
, _done(
|
||||
this,
|
||||
tr::lng_passport_save_value(),
|
||||
st::passportPanelSaveValue) {
|
||||
st::passportPanelSaveValue,
|
||||
Ui::RoundButtonTextToUpper) {
|
||||
setupControls(&error, &data, nullptr, nullptr, {}, {}, {});
|
||||
}
|
||||
|
||||
|
||||
@@ -326,7 +326,8 @@ ScanButton::ScanButton(
|
||||
object_ptr<Ui::RoundButton>(
|
||||
this,
|
||||
tr::lng_passport_delete_scan_undo(),
|
||||
_st.restore)) {
|
||||
_st.restore,
|
||||
Ui::RoundButtonTextToUpper)) {
|
||||
_delete->toggle(!deleted, anim::type::instant);
|
||||
_restore->toggle(deleted, anim::type::instant);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,8 @@ PanelForm::PanelForm(
|
||||
, _submit(
|
||||
this,
|
||||
tr::lng_passport_authorize(),
|
||||
st::passportPanelAuthorize) {
|
||||
st::passportPanelAuthorize,
|
||||
Ui::RoundButtonTextToUpper) {
|
||||
setupControls();
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ PanelAskPassword::PanelAskPassword(
|
||||
this,
|
||||
st::defaultInputField,
|
||||
tr::lng_passport_password_placeholder())
|
||||
, _submit(this, tr::lng_passport_next(), st::passportPasswordSubmit)
|
||||
, _submit(this, tr::lng_passport_next(), st::passportPasswordSubmit, Ui::RoundButtonTextToUpper)
|
||||
, _forgot(this, tr::lng_signin_recover(tr::now), st::defaultLinkButton) {
|
||||
connect(_password, &Ui::PasswordInput::submitted, this, [=] {
|
||||
submit();
|
||||
@@ -227,7 +227,8 @@ void PanelNoPassword::refreshBottom() {
|
||||
object_ptr<Ui::RoundButton>(
|
||||
_inner,
|
||||
tr::lng_passport_password_create(),
|
||||
st::defaultBoxButton),
|
||||
st::defaultBoxButton,
|
||||
Ui::RoundButtonTextToUpper),
|
||||
style::al_top);
|
||||
button->addClickHandler([=] {
|
||||
_controller->setupPassword();
|
||||
@@ -240,18 +241,16 @@ void PanelNoPassword::refreshBottom() {
|
||||
const auto cancel = Ui::CreateChild<Ui::RoundButton>(
|
||||
container,
|
||||
tr::lng_cancel(),
|
||||
st::defaultBoxButton);
|
||||
cancel->setTextTransform(
|
||||
Ui::RoundButton::TextTransform::NoTransform);
|
||||
st::defaultBoxButton,
|
||||
Ui::RoundButtonTextNoTransform);
|
||||
cancel->addClickHandler([=] {
|
||||
_controller->cancelPasswordSubmit();
|
||||
});
|
||||
const auto validate = Ui::CreateChild<Ui::RoundButton>(
|
||||
container,
|
||||
tr::lng_passport_email_validate(),
|
||||
st::defaultBoxButton);
|
||||
validate->setTextTransform(
|
||||
Ui::RoundButton::TextTransform::NoTransform);
|
||||
st::defaultBoxButton,
|
||||
Ui::RoundButtonTextNoTransform);
|
||||
validate->addClickHandler([=] {
|
||||
_controller->validateRecoveryEmail();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user