LEGUP icon indicating copy to clipboard operation
LEGUP copied to clipboard

SVG Icon Rendering

Open JonahEMorgan opened this issue 10 months ago • 1 comments

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)
  • [x] 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:

  • [x] 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)
  • [x] 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

JonahEMorgan avatar Mar 02 '25 22:03 JonahEMorgan

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?

jadeandtea avatar Oct 17 '25 21:10 jadeandtea