Skip to content

SVG Icon Rendering#897

Draft
JonahEMorgan wants to merge 3 commits intoBram-Hub:masterfrom
JonahEMorgan:master
Draft

SVG Icon Rendering#897
JonahEMorgan wants to merge 3 commits intoBram-Hub:masterfrom
JonahEMorgan:master

Conversation

@JonahEMorgan
Copy link
Copy Markdown

Description

The icons do not look particularly good on high resolution displays, especially the ones on the landing window. These icons are scaled from 96x96 to 100x100, and it creates blurring and pixelation. I have added support for antialiased SVG icon rendering in the class SVGIcon, which is only around 300 lines, making it relatively maintainable. Vectorizing the existing set of icons is time consuming, so I have done it on two icons just to show an example.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (improvement to an already existing feature)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

To test the code, simply run the application and observe how the icons have smooth and crisp edges. The code can be affected by malformed input, but in such a case it will print errors and let the application run without icons.

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@jadeandtea
Copy link
Copy Markdown
Collaborator

Supporting higher definition images would be great! Do you plan on continuing work on improving this, or are you okay with letting someone else take over?

Mystin added a commit to Mystin/LEGUP that referenced this pull request Feb 18, 2026
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