Skip to content

Load UI atlas images from SVG#20824

Merged
hrydgard merged 13 commits into
masterfrom
svg-icons
Sep 22, 2025
Merged

Load UI atlas images from SVG#20824
hrydgard merged 13 commits into
masterfrom
svg-icons

Conversation

@hrydgard

@hrydgard hrydgard commented Sep 18, 2025

Copy link
Copy Markdown
Owner

A simple implementation, using the nanosvg rasterizer. It's a limited rasterizer that only fill shapes, doesn't support gradients or strokes, but it's enough for most of our UI images.

  • Drop shadow support (we are not gonna implement full SVG filters but just drop shadows would be nice for on-screen controls).
  • Use DPI properly

@hrydgard hrydgard added this to the v1.20 milestone Sep 18, 2025
@hrydgard hrydgard added the User Interface PPSSPP's own user interface / UX label Sep 18, 2025
@hrydgard hrydgard marked this pull request as ready for review September 22, 2025 21:24
@hrydgard

hrydgard commented Sep 22, 2025

Copy link
Copy Markdown
Owner Author

Except for some nanosvg limitations (meaning we currently can't convert stick/stick_line because they use a fill pattern), this works really well, so I'm gonna get it in shortly after some more testing. Nice to see sharp UI images even at big UI sizes.

I've converted most of the images now, except the flags, the bg gradient and a few more.

@hrydgard hrydgard changed the title Load atlas images from SVG : proof of concept Load UI atlas images from SVG : proof of concept Sep 22, 2025
@hrydgard hrydgard merged commit 233a9b0 into master Sep 22, 2025
21 checks passed
@hrydgard hrydgard deleted the svg-icons branch September 22, 2025 21:57
@hrydgard hrydgard changed the title Load UI atlas images from SVG : proof of concept Load UI atlas images from SVG Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

User Interface PPSSPP's own user interface / UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant