mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Replaced header style in statistics sections with classic subsections.
This commit is contained in:
parent
5d71286000
commit
3071daa6f3
5 changed files with 3 additions and 5 deletions
Telegram/SourceFiles
info
statistics
|
@ -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
|
||||
|
|
|
@ -37,6 +37,7 @@ channelEarnSemiboldLabel: FlatLabel(channelEarnOverviewMajorLabel) {
|
|||
channelEarnHeaderLabel: FlatLabel(channelEarnOverviewMajorLabel) {
|
||||
style: TextStyle(statisticsHeaderTitleTextStyle) {
|
||||
}
|
||||
textFg: windowActiveTextFg;
|
||||
}
|
||||
channelEarnHistorySubLabel: FlatLabel(channelEarnOverviewSubMinorLabel) {
|
||||
style: TextStyle(defaultTextStyle) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue