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(
tr::now);
if (hasOneTab) {
Ui::AddSkip(inner);
const auto header = inner->add(
object_ptr<Statistic::Header>(inner),
st::statisticsLayerMargins
+ st::boostsChartHeaderPadding);
header->resizeToWidth(header->width());
header->setTitle(fullTabText);
header->setSubTitle({});
Ui::AddSubsectionTitle(
inner,
tr::lng_credits_summary_history_tab_full(),
{ 0, 0, 0, -st::defaultSubsectionTitlePadding.bottom() });
}
const auto slider = inner->add(