Skip to content

Conversation

@marmitar
Copy link
Contributor

@marmitar marmitar commented Sep 8, 2025

Details

Hi, this PR adds a svgo.config.mjs that:

  • Ensures all icons have viewBox="0 0 16 16" (GNOME works with multiples of 16, see GNOME Guidelines).
  • Resizes icons if necessary.
  • Removes editor metadata (e.g. Inkscape).
  • Drops width and height attributes.

Then you just run it with npx svgo ui/icons/hicolor/scalable/actions/*.svg (one or more times) and you should get the new SVG files included here.

Screenshots

At 1080p, 100%, Light Theme.

Screenshot From 2025-09-08 01-08-46

I don't have a HiDPI screen to test, but I think this should be close: 1080p, 200%, Dark Theme.

Screenshot From 2025-09-08 00-54-55

With scale-monitor-framebuffer: 1080p, 133%, Dark Theme.

Screenshot From 2025-09-08 00-54-46

- Ensure all icons have `viewBox="0 0 16 16"`.
- Resize icons if necessary.
- Remove editor metadata (e.g. Inkscape).
- Drop fixed `width` and `height`.

Fixes dsheeler#280
@dsheeler dsheeler changed the base branch from main to gnome-49 September 11, 2025 16:02
@dsheeler dsheeler merged commit a0212f8 into dsheeler:gnome-49 Sep 11, 2025
1 check passed
@marmitar marmitar deleted the fix/svg-icons branch September 11, 2025 16:52
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.

Gnome 49.alpha

2 participants