Reputation: 2328
I'm wanting to use an SVG for the viewcontainer part of my VS Code extension.
I've been given some PNG files to use, but unfortunately:
When just using 32x32 PNG files, the icons always show up as a blank white square in the activity bar, and if used as SVG the images don't scale properly to the container in the activity bar.
It's as though they are "zoomed in" on if using the SVG versions.
Anyone have tips or tricks to suggest working around this?
Upvotes: 1
Views: 619
Reputation: 28838
This the open tag of the debug.svg
icon used in the action bar
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
Do you have a viewbox
set?
Upvotes: 1