mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Extended width of ReceiptCreditsBox.
This commit is contained in:
parent
fbce06cb26
commit
f7aaece2f7
1 changed files with 3 additions and 2 deletions
|
@ -820,6 +820,7 @@ void ReceiptCreditsBox(
|
||||||
const auto nonConvertible = (gotStarGift && !e.starsConverted);
|
const auto nonConvertible = (gotStarGift && !e.starsConverted);
|
||||||
|
|
||||||
box->setStyle(st::giveawayGiftCodeBox);
|
box->setStyle(st::giveawayGiftCodeBox);
|
||||||
|
box->setWidth(st::boxWideWidth);
|
||||||
box->setNoContentMargin(true);
|
box->setNoContentMargin(true);
|
||||||
|
|
||||||
const auto content = box->verticalLayout();
|
const auto content = box->verticalLayout();
|
||||||
|
@ -1303,7 +1304,7 @@ void ReceiptCreditsBox(
|
||||||
Ui::Premium::MiniStars::Type::BiStars);
|
Ui::Premium::MiniStars::Type::BiStars);
|
||||||
stars->setColorOverride(Ui::Premium::CreditsIconGradientStops());
|
stars->setColorOverride(Ui::Premium::CreditsIconGradientStops());
|
||||||
widget->resize(
|
widget->resize(
|
||||||
st::boxWidth - stUser.photoSize,
|
st::boxWideWidth - stUser.photoSize,
|
||||||
stUser.photoSize * 2);
|
stUser.photoSize * 2);
|
||||||
content->sizeValue(
|
content->sizeValue(
|
||||||
) | rpl::start_with_next([=](const QSize &size) {
|
) | rpl::start_with_next([=](const QSize &size) {
|
||||||
|
@ -1430,7 +1431,7 @@ void ReceiptCreditsBox(
|
||||||
AddChildToWidgetCenter(button, loadingAnimation);
|
AddChildToWidgetCenter(button, loadingAnimation);
|
||||||
loadingAnimation->showOn(state->confirmButtonBusy.value());
|
loadingAnimation->showOn(state->confirmButtonBusy.value());
|
||||||
}
|
}
|
||||||
const auto buttonWidth = st::boxWidth
|
const auto buttonWidth = st::boxWideWidth
|
||||||
- rect::m::sum::h(st::giveawayGiftCodeBox.buttonPadding);
|
- rect::m::sum::h(st::giveawayGiftCodeBox.buttonPadding);
|
||||||
|
|
||||||
button->widthValue() | rpl::filter([=] {
|
button->widthValue() | rpl::filter([=] {
|
||||||
|
|
Loading…
Add table
Reference in a new issue