mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-07 16:44:44 +01:00
...
This commit is contained in:
parent
513853691f
commit
1fea930dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue