8000 feat(icon): add Dune and OPAM file type icons (OCaml build system files) by web-dev-sam · Pull Request #3722 · vscode-icons/vscode-icons · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(icon): add Dune and OPAM file type icons (OCaml build system files) #3722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 23, 2025

Conversation

web-dev-sam
Copy link
Contributor

Changes proposed:

  • Add

Adding OCaml package manager and build file icons. Dune and Opam.

Copy link
github-actions bot commented Feb 22, 2025

Icons Background Test

file_type_dune (603 bytes)

Preview

file_type_opam (4710 bytes)

Preview

@robertohuertasm
Copy link
Member

Hi @web-dev-sam! Thanks for your contribution. It would be nice to try to optimize the opam icon. We're aiming for 2KB, if possible.

@web-dev-sam
Copy link
Contributor Author
web-dev-sam commented Feb 22, 2025

Hi @web-dev-sam! Thanks for your contribution. It would be nice to try to optimize the opam icon. We're aiming for 2KB, if possible.

Got Dune from 1.9K to 0.6K and Opam from 9K to 4.5K. Removed some uneeded svg path nodes and elements however I'm not seeing Opam going down to 2K. That would need reshaping to the design/caml and I'm not a designer so wouldn't feel capable of doing that. Also, both icons are now SVGO optimized.

Edit: Also just checked the OCaml icon which is basically a subset of the Opam icon and that one is a bit bigger at 5K+ so I see it as a win.

Edit: Edit: I tried auto optimizing (svgo) all icons which also saved quiet a bit overall. Would it make sense to create a new PR to change/optimize all icons? Tried it and seems to work fine. Here is AI summary of results: The optimization process achieved nearly 13% reduction in file size on average, saving about 487 KiB across all files. The total size was reduced from approximately 4,244 KiB to 3,757 KiB.

@robertohuertasm
Copy link
Member
robertohuertasm commented Feb 22, 2025

@web-dev-sam thanks for fixing the issue. I've updated the icons:

  • dune to be vertically aligned
  • opam to keep the right horizontal margins

Feel free to pass svgo on these as I haven't done it myself. I applied svgo, too.

@robertohuertasm
Copy link
Member

Regarding your comment of applying svgo to all the files, I think it could be useful. The extension would be lighter.

@robertohuertasm
Copy link
Member

@web-dev-sam, on second thought, I'm not sure about having that massive PR passing SVGO to the whole icons folder. I'm thinking that we may miss some optimizations that alter the visual aspect of the icon in a notable way. That would require a massive review (around 1370 icons and growing). I guess we could do such a thing in an incremental way to make the review easier (groups of 10, 20?).

In any case, I think it may make sense to ask for users to try to apply it as an optimization step if possible.

Copy link
Member
@robertohuertasm robertohuertasm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 Thanks for your contribution ❤️

@robertohuertasm robertohuertasm added this to the Next milestone Feb 23, 2025
@robertohuertasm robertohuertasm merged commit 0b94984 into vscode-icons:master Feb 23, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0