U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Icon in buttons for different resolution
Icon in buttons for different resolution [message #61988] Thu, 07 May 2026 15:03
forlano is currently offline  forlano
Messages: 1224
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I need to set icons on my buttons so that they look consistent across different screen resolutions and also adapt correctly to light and dark themes.

I have read this documentation page https://www.ultimatepp.org/dev/srcdoc$Draw$UhdAndDarkTheme_e n-us.html ,
but I am still a bit confused.

1. What icon size should I use for proper UHD / DPI scaling?
2. Which format works best for scaling and rendering quality (.png, .svg, or something else)?
3. Should I provide separate icons for light and dark themes, or is it better to use a single neutral version?
4. Is there a recommended workflow or best practice for handling icons in Ultimate++ applications?
5. Are SVG icons fully supported and recommended in production, or are raster images still preferred?
6. If PNG icons are recommended, should I provide multiple resolutions (16x16, 24x24, 32x32, etc.)?
7. Is there any automatic recoloring/tinting support for dark mode, or must theme-specific icons always be created manually?
8. Perhaps a reference example that shows how to handle these problems would be very appreciated.

Thanks!
Luigi
Previous Topic: How to render uncapped OpenGL ?
Next Topic: Drawing / Painter Difference,Usage,Manual
Goto Forum:
  


Current Time: Fri May 15 06:06:25 GMT+2 2026

Total time taken to generate the page: 0.00554 seconds