mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
pointerA11yTimeout: Draw a clean circle if the pie is finished
If the circle is complete and the pie timeout finished, we don't need the lines to the center point indicating the ends of the pie anymore. We just draw a clean circle instead, which allows for a zoom-out and fade animation of the circle when we're done. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/688
This commit is contained in:
parent
ea3f906f38
commit
20fc4b4490
1 changed files with 7 additions and 2 deletions
|
|
@ -50,9 +50,14 @@ var PieTimer = GObject.registerClass({
|
|||
cr.setLineJoin(Cairo.LineJoin.ROUND);
|
||||
cr.translate(width / 2, height / 2);
|
||||
|
||||
if (this._angle < 2 * Math.PI)
|
||||
cr.moveTo(0, 0);
|
||||
|
||||
cr.arc(0, 0, radius - borderWidth, startAngle, endAngle);
|
||||
|
||||
if (this._angle < 2 * Math.PI)
|
||||
cr.lineTo(0, 0);
|
||||
|
||||
cr.closePath();
|
||||
|
||||
cr.setLineWidth(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue