Truly independent web browser
UI/Qt: Center the downloads progress ring on the arrow
Andreas Kling03bcfbeffddf
diff --git a/UI/Qt/WindowToolbar.cpp b/UI/Qt/WindowToolbar.cppindex 452a419d7cd..a8cbdfcee78 100644--- a/UI/Qt/WindowToolbar.cpp+++ b/UI/Qt/WindowToolbar.cpp@@ -510,7 +510,10 @@ private:QPainter painter(this);painter.setRenderHint(QPainter::Antialiasing, true);auto palette = Theme::chrome_palette(*this);- auto center = QRectF(rect()).center();+ // NB: The arrow is drawn around the middle of the icon grid at 7.5, half a unit above and left of the middle of+ // the icon, so the ring is centered on it there.+ auto grid_offset = 0.5 * iconSize().width() / CHROME_ICON_CANVAS_SIZE;+ auto center = QRectF(icon_rect()).center() - QPointF(grid_offset, grid_offset);auto ring_is_fading = m_ring_fade.state() == QAbstractAnimation::Running;if (m_downloading || ring_is_fading) {painter.save();