Replaced header in credits settings for credits history with subtitle.

This commit is contained in:
23rd 2024-11-27 09:42:00 +03:00
parent 5934614edb
commit bf07b832f0

View file

@ -235,14 +235,10 @@ void Credits::setupHistory(not_null<Ui::VerticalLayout*> container) {
const auto outTabText = tr::lng_credits_summary_history_tab_out( const auto outTabText = tr::lng_credits_summary_history_tab_out(
tr::now); tr::now);
if (hasOneTab) { if (hasOneTab) {
Ui::AddSkip(inner); Ui::AddSubsectionTitle(
const auto header = inner->add( inner,
object_ptr<Statistic::Header>(inner), tr::lng_credits_summary_history_tab_full(),
st::statisticsLayerMargins { 0, 0, 0, -st::defaultSubsectionTitlePadding.bottom() });
+ st::boostsChartHeaderPadding);
header->resizeToWidth(header->width());
header->setTitle(fullTabText);
header->setSubTitle({});
} }
const auto slider = inner->add( const auto slider = inner->add(