Hi all.
I've been working on providing hires icons for SQuirreL SQL for use on
hidpi screens for sometime now. Gerd has been kind to produce and host
an experimental build showcasing the changes:
-
https://sourceforge.net/projects/squirrel-sql/files/experimental/hires_icons/
The effect of this is only seen on hidpi screens using Java 9+ (Java 8
is generally not hidpi-aware). I would like to find out whether people
find useful the way icons are painted on hidpi screens with this
experimental build. Personally I find the improvement essential for
non-integral scale factor screens, f.e. 1.25 (125%), 1.5 (150%), 1.75
(175%). See some screenshots for comparison:
- Screen scaling 125% original: https://i.imgur.com/R65Vq4Q.png
- Screen scaling 125% hires icons: https://i.imgur.com/k3yj336.png
- Screen scaling 150% original: https://i.imgur.com/n7F06M7.png
- Screen scaling 150% hires icons: https://i.imgur.com/BWaD0mP.png
- Screen scaling 200% original: https://i.imgur.com/X569kdU.png
- Screen scaling 200% hires icons: https://i.imgur.com/goyCLCE.png
but it would be best if you could try out the experimental build and
provide feedback to this thread. Hope you like it.
---
Here are some technical details. The hires icon variants are produced
from the original ones using 2xBRZ:
- https://sourceforge.net/projects/xbrz
This provides some very nice scaled up variants – sharp with preserved
detail as much as there could be.
For non-integral scale factor monitors, the 2x variants are dynamically
smoothly scaled (down) to the target resolution. This produces much
better result than smoothly (bicubic interpolation) scaling up the
original variants.
For even more details one could check out the various incarnations of my
attempts at this so far:
- https://sourceforge.net/p/squirrel-sql/git/merge-requests/50
- https://sourceforge.net/p/squirrel-sql/git/merge-requests/52
- https://sourceforge.net/p/squirrel-sql/git/merge-requests/55
- https://sourceforge.net/p/squirrel-sql/git/merge-requests/57
--
Stanimir
|