Slightly improved style of terms label in gift box from settings.
This commit is contained in:
parent
de8b09d7fc
commit
db8338156a
|
@ -531,24 +531,17 @@ void GiftsBox(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Footer.
|
// Footer.
|
||||||
auto terms = object_ptr<Ui::FlatLabel>(
|
{
|
||||||
box,
|
box->addRow(
|
||||||
tr::lng_premium_gift_terms(
|
object_ptr<Ui::DividerLabel>(
|
||||||
lt_link,
|
box,
|
||||||
tr::lng_premium_gift_terms_link(
|
object_ptr<Ui::FlatLabel>(
|
||||||
) | rpl::map([=](const QString &t) {
|
box,
|
||||||
return Ui::Text::Link(t, 1);
|
session->api().premium().statusTextValue(), // TODO.
|
||||||
}),
|
st::premiumGiftTerms),
|
||||||
Ui::Text::WithEntities),
|
st::defaultBoxDividerLabelPadding),
|
||||||
st::premiumGiftTerms);
|
{});
|
||||||
terms->setLink(1, std::make_shared<LambdaClickHandler>([=] {
|
}
|
||||||
box->closeBox();
|
|
||||||
Settings::ShowPremium(session, QString());
|
|
||||||
}));
|
|
||||||
terms->resizeToWidth(available);
|
|
||||||
box->addRow(
|
|
||||||
object_ptr<Ui::CenterWrap<Ui::FlatLabel>>(box, std::move(terms)),
|
|
||||||
st::premiumGiftTermsPadding);
|
|
||||||
|
|
||||||
// Button.
|
// Button.
|
||||||
const auto &stButton = st::premiumGiftBox;
|
const auto &stButton = st::premiumGiftBox;
|
||||||
|
|
Loading…
Reference in New Issue