Repository navigation
update icon: vscode (plain, plain-wordmark) - #2922
Closed
JagguDada01 wants to merge 1 commit into
Closed
JagguDada01 wants to merge 1 commit into
JagguDada01 wants to merge 1 commit into
Conversation
Author
|
Closing PR as requested (prepared by an AI assistant on behalf of @JagguDada01). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Double check these details before you open a PR
developbranch.Summary
Reorients subpath winding directions and removes
fill-rule="evenodd"andclip-rule="evenodd"fromicons/vscode/vscode-plain-wordmark.svgandicons/vscode/vscode-plain.svgso that all inner counter holes render properly under thenonzerofill rule used by icon fonts.Problem
In the generated icon font (
fonts/devicon.svg),vscode-plain-wordmarkhas the inner counters of"d"(in "Studio") and"e"(in "Code") filled in solid instead of hollow. Additionally, bothvscode-plain-wordmark.svgandvscode-plain.svgfailcheck_icon.jsandvalidate.jsdue to disallowedfill-rule="evenodd"andclip-rule="evenodd"attributes on font-version<path>elements.Root Cause
Both
icons/vscode/vscode-plain-wordmark.svgandicons/vscode/vscode-plain.svgrelied onfill-rule="evenodd"andclip-rule="evenodd"with inconsistent subpath winding directions (e.g., outer contours and inner holes sharing the same winding direction in the emblem, and mixed orientations across the wordmark glyphs). Icon fonts use thenonzerowinding rule rather thanevenodd, causing the font build to fill inner counters in"d"and"e"invscode-plain-wordmarkand the inner triangle invscode-plainwhenevenoddis not honored.Solution
icons/vscode/vscode-plain-wordmark.svg(19 outer contours clockwise, 7 inner holes counter-clockwise) andicons/vscode/vscode-plain.svg(1 outer contour clockwise, 1 inner hole counter-clockwise) usingpaper.js(reorient(false, true)).fill-rule="evenodd"andclip-rule="evenodd"from both<path>elements so both SVGs conform to<svg xmlns viewBox>+<path d>and render identically undernonzerofill rules..claude/skills/svg-icons/scripts/svgo.config.js, multipass, precision 3) with trailing newlines. Kept the existing monochrome fill unchanged to preserve exact visual appearance.Testing
node .claude/skills/devicon-icon-review/scripts/check_icon.js vscode --repo .->0 errors(vscode: 0 errors, 8 warnings, 0 notes; remaining warnings are pre-existing onvscode-original*.svgand missing explicitfill="#3C99D4").node .claude/skills/svg-icons/scripts/validate.js icons/vscode/vscode-plain-wordmark.svg icons/vscode/vscode-plain.svg->2 files, 0 failing.node .claude/skills/svg-icons/scripts/optimize.js --check icons/vscode/vscode-plain-wordmark.svg icons/vscode/vscode-plain.svg->ok(0 bytes (0%)savings).python3 ./.github/scripts/check_icon_pr.py "update icon: vscode (plain, plain-wordmark)" ./icons ./devicon.json->Task completed.,err_messages.txtempty (0 bytes)..claude/skills/svg-icons/scripts/render.js(including zoomed wordmark at--zoom 0,115,128,13) and verified visually on light and dark backgrounds at 128px, 32px, and 16px, and checked pixel diffs withpixdiff.js(16/3anti-aliasing channel diffs out of 262,144 from arc-to-cubic conversion).This PR closes #2329
Closes #2329
Link to prove your SVG is correct and up-to-date.
Official Visual Studio Code icon geometry is unchanged from the existing SVGs in
icons/vscode/(originally updated in #1524); only subpath winding andfill-rule/clip-ruleattributes were fixed for font compatibility.Notes