mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Switched suggestion buttons in main settings to full radius.
This commit is contained in:
@@ -882,6 +882,7 @@ void SetupValidatePhoneNumberSuggestion(
|
|||||||
wrap,
|
wrap,
|
||||||
tr::lng_box_yes(),
|
tr::lng_box_yes(),
|
||||||
st::inviteLinkButton);
|
st::inviteLinkButton);
|
||||||
|
yes->setFullRadius(true);
|
||||||
yes->setClickedCallback([=] {
|
yes->setClickedCallback([=] {
|
||||||
controller->session().promoSuggestions().dismiss(
|
controller->session().promoSuggestions().dismiss(
|
||||||
kSugValidatePhone.utf8());
|
kSugValidatePhone.utf8());
|
||||||
@@ -891,6 +892,7 @@ void SetupValidatePhoneNumberSuggestion(
|
|||||||
wrap,
|
wrap,
|
||||||
tr::lng_box_no(),
|
tr::lng_box_no(),
|
||||||
st::inviteLinkButton);
|
st::inviteLinkButton);
|
||||||
|
no->setFullRadius(true);
|
||||||
no->setClickedCallback([=] {
|
no->setClickedCallback([=] {
|
||||||
const auto sharedLabel = std::make_shared<base::weak_qptr<Ui::FlatLabel>>();
|
const auto sharedLabel = std::make_shared<base::weak_qptr<Ui::FlatLabel>>();
|
||||||
const auto height = st::boxLabel.style.font->height;
|
const auto height = st::boxLabel.style.font->height;
|
||||||
@@ -982,6 +984,7 @@ void SetupValidatePasswordSuggestion(
|
|||||||
wrap,
|
wrap,
|
||||||
tr::lng_settings_suggestion_password_yes(),
|
tr::lng_settings_suggestion_password_yes(),
|
||||||
st::inviteLinkButton);
|
st::inviteLinkButton);
|
||||||
|
yes->setFullRadius(true);
|
||||||
yes->setClickedCallback([=] {
|
yes->setClickedCallback([=] {
|
||||||
controller->session().promoSuggestions().dismiss(
|
controller->session().promoSuggestions().dismiss(
|
||||||
Data::PromoSuggestions::SugValidatePassword());
|
Data::PromoSuggestions::SugValidatePassword());
|
||||||
@@ -991,6 +994,7 @@ void SetupValidatePasswordSuggestion(
|
|||||||
wrap,
|
wrap,
|
||||||
tr::lng_settings_suggestion_password_no(),
|
tr::lng_settings_suggestion_password_no(),
|
||||||
st::inviteLinkButton);
|
st::inviteLinkButton);
|
||||||
|
no->setFullRadius(true);
|
||||||
no->setClickedCallback([=] {
|
no->setClickedCallback([=] {
|
||||||
showOther(Settings::CloudPasswordSuggestionInputId());
|
showOther(Settings::CloudPasswordSuggestionInputId());
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user