Replaced header style in statistics sections with classic subsections.

This commit is contained in:
23rd 2024-11-27 15:45:25 +03:00
parent 5d71286000
commit 3071daa6f3
5 changed files with 3 additions and 5 deletions
Telegram/SourceFiles

View file

@ -143,7 +143,6 @@ void InnerWidget::fill() {
Ui::AddSkip(container);
Ui::AddDivider(container);
Ui::AddSkip(container);
Ui::AddSkip(container);
}
{
AddHeader(container, tr::lng_bot_earn_overview_title);
@ -279,7 +278,6 @@ void InnerWidget::fillHistory() {
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

View file

@ -37,6 +37,7 @@ channelEarnSemiboldLabel: FlatLabel(channelEarnOverviewMajorLabel) {
channelEarnHeaderLabel: FlatLabel(channelEarnOverviewMajorLabel) {
style: TextStyle(statisticsHeaderTitleTextStyle) {
}
textFg: windowActiveTextFg;
}
channelEarnHistorySubLabel: FlatLabel(channelEarnOverviewSubMinorLabel) {
style: TextStyle(defaultTextStyle) {

View file

@ -1014,7 +1014,6 @@ void InnerWidget::fill() {
listsContainer,
tr::lng_channel_earn_credits_history);
slider->entity()->setActiveSectionFast(1);
AddSkip(listsContainer);
}
} else {
slider->entity()->setActiveSectionFast(*sectionIndex);

View file

@ -59,7 +59,7 @@ statisticsPieChartPartOffset: 8px;
statisticsChartHeaderHeight: 36px;
statisticsChartHeaderPadding: margins(2px, 0px, 0px, 10px);
statisticsHeaderTitleTextStyle: TextStyle(defaultTextStyle) {
font: font(13px);
font: font(boxFontSize semibold);
}
statisticsHeaderDatesTextStyle: TextStyle(defaultTextStyle) {
font: font(11px);

View file

@ -43,7 +43,7 @@ void Header::paintEvent(QPaintEvent *e) {
p.fillRect(rect(), st::boxBg);
p.setPen(st::boxTextFg);
p.setPen(st::windowActiveTextFg);
_title.drawLeftElided(p, 0, 0, width(), width());
p.setPen(st::windowSubTextFg);