Mon, 7 Sep 2020 17:46:44 +0300, /Stanimir Stamenkov/:
> 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)...
There's now updated build which adds hidpi support for Java 8 as well:
https://sourceforge.net/projects/squirrel-sql/files/experimental/hires_icons_2/
There are few possible details for making it effective with Java 8:
1. On Windows one may have to adjust the Java executable (javaw.exe)
properties like:
javaw.exe Properties / Compatibility / Change High DPI settings
https://i.imgur.com/jjpDgfI.png
High DPI scaling override / Scaling performed by: Application
https://i.imgur.com/a5msK7m.png
2. With some L&Fs such as the built-in Metal and Nimbus one may need to
manually adjust font sizes via the SQuirreL Global Preferences / Fonts:
https://sourceforge.net/p/squirrel-sql/git/_discuss/thread/143ec88272/0cb1/attachment/squirrel-metal-fonts-java8.png
This is not generally necessary with JGoodies Plastic, for example.
Note on Java 8 hidpi support: Even with SQuirreL icons and SQuirreL
specific UI scaled appropriately certain UI elements such as scroll-bars
may not be scaled appropriately by the used L&F – compare JGoodies
Plastic on Java 8 and Java 9:
Java 8:
https://sourceforge.net/p/squirrel-sql/git/_discuss/thread/143ec88272/0cb1/attachment/squirrel-plastic-object-tree-java8.png
Java 9+:
https://sourceforge.net/p/squirrel-sql/git/_discuss/thread/143ec88272/0cb1/attachment/squirrel-plastic-object-tree-java9.png
For full hidpi support/experience one may use FlatLaf [1]:
Java 8:
https://sourceforge.net/p/squirrel-sql/git/_discuss/thread/143ec88272/0cb1/attachment/squirrel-flatlaf-object-tree-java8.png
Java
Java 9+:
https://sourceforge.net/p/squirrel-sql/git/_discuss/thread/143ec88272/0cb1/attachment/squirrel-flatlaf-object-tree-java9.png
FlatLaf could be set up for use via the user "extralafs.properties" [2]:
# https://www.formdev.com/flatlaf/
classname0=com.formdev.flatlaf.FlatLightLaf
jars0=flatlaf-0.42.jar
classname1=com.formdev.flatlaf.FlatDarkLaf
jars1=flatlaf-0.42.jar
Find more details and screenshots in the merge request:
https://sourceforge.net/p/squirrel-sql/git/merge-requests/57
[1] https://www.formdev.com/flatlaf/
[2]
https://sourceforge.net/p/squirrel-sql/git/ci/master/tree/sql12/plugins/laf/doc/readme.html?format=raw
--
Stanimir
|