Skip to content

feat: reduce Copilot icon size to 0.9x in status bar#19

Merged
j4rviscmd merged 2 commits intomainfrom
feat/statusbar-icon-size
Mar 14, 2026
Merged

feat: reduce Copilot icon size to 0.9x in status bar#19
j4rviscmd merged 2 commits intomainfrom
feat/statusbar-icon-size

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

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 23 to -3.6 -1.3 32.2 25.6
  • assets/icons/copilot-light.svg — same viewBox change
  • assets/fonts/copilot-icons.woff — regenerated from updated SVG files using svgtofont
  • package-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.

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.
@j4rviscmd j4rviscmd added enhancement New feature or request ui labels Mar 14, 2026
@j4rviscmd j4rviscmd self-assigned this Mar 14, 2026
@j4rviscmd
Copy link
Copy Markdown
Owner Author

Why SVG files appear in the diff

The SVG files (copilot-dark.svg, copilot-light.svg) are source files used to generate the woff font. The VSCode extension only uses the woff font at runtime — the SVGs are not loaded directly.

Why the SVG diff is unavoidable

To resize the icon, the viewBox attribute in the SVG must be changed, and then the woff font must be regenerated from the updated SVG using svgtofont. There is no way to update the woff without first modifying the SVG source.

What changed

  • viewBox before: -2 0 29 23 (width=29, height=23)
  • viewBox after: -3.6 -1.3 32.2 25.6 (width=32.2, height=25.6)

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 minX/minY offsets are adjusted to keep the icon centered.

The SVG change is committed alongside the woff regeneration so the source and generated artifact stay in sync.

@j4rviscmd j4rviscmd merged commit 8a5abb9 into main Mar 14, 2026
4 checks passed
@j4rviscmd j4rviscmd deleted the feat/statusbar-icon-size branch March 14, 2026 02:11
This was referenced Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Status barのCopilotアイコンサイズを小さくしたい

1 participant