This commit is contained in:
Kovid Goyal 2016-10-13 07:56:11 +05:30
parent 513853691f
commit 1fea930dfd

View File

@ -26,7 +26,7 @@ def draw_snake_spinner(painter, rect, angle, light, dark):
gap = 60 # degrees
gradient = QConicalGradient(drawing_rect.center(), angle - gap // 2)
gradient.setColorAt(1, light)
gradient.setColorAt((360 - gap//2)/360.0, light)
gradient.setColorAt(0, dark)
pen = QPen(QBrush(gradient), disc_width)