From 83cf12b475562d1a66cb5e9f0ffba45b0e2bb3bb Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 11 Sep 2023 14:53:31 +0300 Subject: [PATCH] Slightly reduced size of buttons in container to filter chart lines. --- Telegram/SourceFiles/statistics/chart_lines_filter_widget.cpp | 2 +- Telegram/SourceFiles/statistics/statistics.style | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/statistics/chart_lines_filter_widget.cpp b/Telegram/SourceFiles/statistics/chart_lines_filter_widget.cpp index 7e087e88d9..1e903c06fc 100644 --- a/Telegram/SourceFiles/statistics/chart_lines_filter_widget.cpp +++ b/Telegram/SourceFiles/statistics/chart_lines_filter_widget.cpp @@ -57,7 +57,7 @@ ChartLinesFilterWidget::FlatCheckbox::FlatCheckbox( : Ui::AbstractButton(parent) , _activeColor(activeColor) , _inactiveColor(st::boxBg->c) -, _text(st::defaultTextStyle, text) { +, _text(st::statisticsDetailsBottomCaptionStyle, text) { const auto &margins = st::statisticsChartFlatCheckboxMargins; const auto h = _text.minHeight() + rect::m::sum::v(margins) * 2; resize( diff --git a/Telegram/SourceFiles/statistics/statistics.style b/Telegram/SourceFiles/statistics/statistics.style index 53406bafc2..9b0a4a905f 100644 --- a/Telegram/SourceFiles/statistics/statistics.style +++ b/Telegram/SourceFiles/statistics/statistics.style @@ -33,7 +33,7 @@ statisticsChartBottomCaptionMaxWidth: 44px; statisticsChartFooterSkip: 10px; statisticsChartFooterHeight: 52px; -statisticsChartFlatCheckboxMargins: margins(6px, 4px, 6px, 4px); +statisticsChartFlatCheckboxMargins: margins(4px, 4px, 4px, 4px); statisticsChartFlatCheckboxCheckWidth: 4px; statisticsDetailsPopupHeaderStyle: TextStyle(defaultTextStyle) {