1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-01 11:12:50 -05:00

SVG icons: adjust the hat on the Pageant icon.

It was a bit far to the right, looking at risk of falling off. Now
moved it as far left as it will go without the top right corner of the
computer monitor peeking out from behind it.
This commit is contained in:
Simon Tatham 2025-03-08 12:03:27 +00:00
parent 0a77b18481
commit feaadd90ea

View File

@ -844,8 +844,8 @@ def pageant_icon(size):
# Determine the relative coordinates of the computer and hat. We # Determine the relative coordinates of the computer and hat. We
# do this by first centring one on the other, then adjusting by # do this by first centring one on the other, then adjusting by
# hand. # hand.
xrel = (cbb[0]+cbb[2]-hbb[0]-hbb[2])/2 + 2*size xrel = (cbb[0]+cbb[2]-hbb[0]-hbb[2])/2 + 0.7*size
yrel = (cbb[1]+cbb[3]-hbb[1]-hbb[3])/2 + 12*size yrel = (cbb[1]+cbb[3]-hbb[1]-hbb[3])/2 + 12.5*size
both = SVGgroup([c, ht], [(0,0), (xrel,yrel)]) both = SVGgroup([c, ht], [(0,0), (xrel,yrel)])