Changeset 17545 in josm for trunk/src


Ignore:
Timestamp:
2021-02-28T16:27:26+01:00 (4 years ago)
Author:
Don-vip
Message:

see #20257 - JDK-8251377 is fixed in Java 16, make sure we don't mess with default LAF in Java 16+

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r17512 r17545  
    10431043                Logging.log(Logging.LEVEL_ERROR, null, e);
    10441044            }
    1045         } else {
     1045        } else if (PlatformManager.isPlatformOsx() && Utils.getJavaVersion() < 16) {
    10461046            // Workaround for JDK-8251377: JTabPanel active tab is unreadable in Big Sur, see #20075
    10471047            // os.version will return 10.16, or 11.0 depending on environment variable
     
    10491049            final String laf = UIManager.getLookAndFeel().getID();
    10501050            final String macOSVersion = getSystemProperty("os.version");
    1051             if (PlatformManager.isPlatformOsx() && (laf.contains("Mac") || laf.contains("Aqua"))
     1051            if ((laf.contains("Mac") || laf.contains("Aqua"))
    10521052                    && (macOSVersion.startsWith("10.16") || macOSVersion.startsWith("11"))) {
    10531053                UIManager.put("TabbedPane.foreground", Color.BLACK);
Note: See TracChangeset for help on using the changeset viewer.