From 0788f3d7b03784165d24dd66a5f4403d7ab8a6e6 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sun, 22 Oct 2023 22:46:41 +0300 Subject: [PATCH] Increased size of arrow in chart point details widget. --- Telegram/SourceFiles/statistics/statistics.style | 2 +- .../SourceFiles/statistics/widgets/point_details_widget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/statistics/statistics.style b/Telegram/SourceFiles/statistics/statistics.style index e27059a41..f797dbc1a 100644 --- a/Telegram/SourceFiles/statistics/statistics.style +++ b/Telegram/SourceFiles/statistics/statistics.style @@ -17,7 +17,7 @@ statisticsChartHeight: 200px; statisticsChartEntryPadding: margins(0px, 13px, 0px, 2px); -statisticsDetailsArrowShift: 2px; +statisticsDetailsArrowShift: 3px; statisticsDetailsArrowStroke: 1.5; statisticsDetailsPopupMargins: margins(12px, 8px, 12px, 11px); statisticsDetailsPopupPadding: margins(6px, 6px, 6px, 6px); diff --git a/Telegram/SourceFiles/statistics/widgets/point_details_widget.cpp b/Telegram/SourceFiles/statistics/widgets/point_details_widget.cpp index a9f057543..4baa07539 100644 --- a/Telegram/SourceFiles/statistics/widgets/point_details_widget.cpp +++ b/Telegram/SourceFiles/statistics/widgets/point_details_widget.cpp @@ -429,7 +429,7 @@ void PointDetailsWidget::paintEvent(QPaintEvent *e) { const auto s = _arrow.size() / style::DevicePixelRatio(); const auto x = rect::right(_textRect) - s.width(); const auto y = _textRect.y() - + (_headerStyle.font->height - s.height()) / 2.; + + (_headerStyle.font->ascent - s.height()); p.drawImage(x, y, _arrow); } }