Improved text padding in ShowOrPremiumBox.

This commit is contained in:
23rd 2024-08-18 12:41:00 +03:00
parent 8349cb0dd4
commit f650c679e0

View File

@ -143,45 +143,46 @@ void ShowOrPremiumBox(
box->closeBox();
});
const auto buttonPadding = QMargins(
st::showOrBox.buttonPadding.left(),
0,
st::showOrBox.buttonPadding.right(),
0);
box->addRow(MakeShowOrPremiumIcon(box, skin.icon));
box->addRow(
object_ptr<FlatLabel>(
box,
std::move(skin.showTitle),
st::boostCenteredTitle),
st::showOrTitlePadding);
st::showOrTitlePadding + buttonPadding);
box->addRow(
object_ptr<FlatLabel>(
box,
std::move(skin.showAbout),
st::boostText),
st::showOrAboutPadding);
st::showOrAboutPadding + buttonPadding);
const auto show = box->addRow(
object_ptr<RoundButton>(
box,
std::move(skin.showButton),
st::showOrShowButton),
QMargins(
st::showOrBox.buttonPadding.left(),
0,
st::showOrBox.buttonPadding.right(),
0));
buttonPadding);
show->setTextTransform(RoundButton::TextTransform::NoTransform);
box->addRow(
MakeShowOrLabel(box, std::move(skin.orPremium)),
st::showOrLabelPadding);
st::showOrLabelPadding + buttonPadding);
box->addRow(
object_ptr<FlatLabel>(
box,
std::move(skin.premiumTitle),
st::boostCenteredTitle),
st::showOrTitlePadding);
st::showOrTitlePadding + buttonPadding);
box->addRow(
object_ptr<FlatLabel>(
box,
std::move(skin.premiumAbout),
st::boostText),
st::showOrPremiumAboutPadding);
st::showOrPremiumAboutPadding + buttonPadding);
const auto premium = CreateChild<GradientButton>(
box.get(),