feat: reduce Copilot icon size to 0.9x in status bar#19
Conversation
Scale the SVG viewBox from '-2 0 29 23' to '-3.6 -1.3 32.2 25.6' to display the icon at 0.9x its original size (both width and height), centered within the same bounding box. Regenerate copilot-icons.woff from updated SVG files.
Why SVG files appear in the diffThe SVG files ( Why the SVG diff is unavoidableTo resize the icon, the What changed
By expanding the coordinate space while keeping the path data identical, the icon renders at approximately 0.9× its original size when VSCode scales it to a fixed pixel size. The The SVG change is committed alongside the woff regeneration so the source and generated artifact stay in sync. |
Summary
Resolves #16
Scale the Copilot icon displayed in the status bar to 0.9x its original size (both width and height) by adjusting the SVG viewBox and regenerating the woff font.
Changes
assets/icons/copilot-dark.svg— viewBox changed from-2 0 29 23to-3.6 -1.3 32.2 25.6assets/icons/copilot-light.svg— same viewBox changeassets/fonts/copilot-icons.woff— regenerated from updated SVG files using svgtofontpackage-lock.json— updated to reflect svgtofont dependency (replaced fantasticon)Approach
Expanding the viewBox while keeping the path data unchanged causes the icon to appear smaller relative to the available space. The minX/minY offsets are adjusted to keep the icon centered.