Slightly improved style of section for boost statistics.

This commit is contained in:
23rd 2025-01-14 19:53:57 +03:00
parent 4a22e76bdb
commit ec82d5674f
2 changed files with 8 additions and 5 deletions

View file

@ -5836,6 +5836,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_boosts_list_tab_gifts#other" = "{count} Gifts"; "lng_boosts_list_tab_gifts#other" = "{count} Gifts";
"lng_boosts_prepaid_giveaway_title" = "Prepaid giveaways"; "lng_boosts_prepaid_giveaway_title" = "Prepaid giveaways";
"lng_boosts_prepaid_giveaway_title_subtext" = "Select a giveaway you already paid for to set it up.";
"lng_boosts_prepaid_giveaway_single" = "Prepaid giveaway"; "lng_boosts_prepaid_giveaway_single" = "Prepaid giveaway";
"lng_boosts_prepaid_giveaway_quantity#one" = "{count} Telegram Premium"; "lng_boosts_prepaid_giveaway_quantity#one" = "{count} Telegram Premium";
"lng_boosts_prepaid_giveaway_quantity#other" = "{count} Telegram Premium"; "lng_boosts_prepaid_giveaway_quantity#other" = "{count} Telegram Premium";

View file

@ -185,7 +185,7 @@ void FillShareLink(
const auto label = content->lifetime().make_state<Ui::InviteLinkLabel>( const auto label = content->lifetime().make_state<Ui::InviteLinkLabel>(
content, content,
rpl::single(link), rpl::single(base::duplicate(link).replace(u"https://"_q, QString())),
nullptr); nullptr);
content->add( content->add(
label->take(), label->take(),
@ -391,7 +391,9 @@ void InnerWidget::fill() {
} }
Ui::AddSkip(inner); Ui::AddSkip(inner);
Ui::AddDivider(inner); Ui::AddDividerText(
inner,
tr::lng_boosts_prepaid_giveaway_title_subtext());
Ui::AddSkip(inner); Ui::AddSkip(inner);
} }
@ -456,9 +458,9 @@ void InnerWidget::fill() {
inner, inner,
object_ptr<Ui::CustomWidthSlider>( object_ptr<Ui::CustomWidthSlider>(
inner, inner,
st::dialogsSearchTabs)), st::dialogsSearchTabs)));
st::boxRowPadding); if (!hasOneTab) {
if (const auto shadow = Ui::CreateChild<Ui::PlainShadow>(inner)) { const auto shadow = Ui::CreateChild<Ui::PlainShadow>(inner);
shadow->show(); shadow->show();
slider->geometryValue( slider->geometryValue(
) | rpl::start_with_next([=](const QRect &r) { ) | rpl::start_with_next([=](const QRect &r) {