Styling: use FlatLightLaf in unit tests and get UI delegates from components

This commit is contained in:
Karl Tauber
2021-07-04 10:43:08 +02:00
parent 2b1c55ee67
commit 5801bf3bdf
3 changed files with 72 additions and 100 deletions

View File

@@ -309,6 +309,9 @@ class LinuxFontPolicy
* - running on JetBrains Runtime 11 or later and scaling is enabled in system Settings
*/
private static boolean isSystemScaling() {
if( GraphicsEnvironment.isHeadless() )
return true;
GraphicsConfiguration gc = GraphicsEnvironment.getLocalGraphicsEnvironment()
.getDefaultScreenDevice().getDefaultConfiguration();
return UIScale.getSystemScaleFactor( gc ) > 1;