mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
...
This commit is contained in:
parent
513853691f
commit
1fea930dfd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user