mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Replaced header in credits settings for credits history with subtitle.
This commit is contained in:
parent
5934614edb
commit
bf07b832f0
1 changed files with 4 additions and 8 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue