Changeset 17297 in josm


Ignore:
Timestamp:
2020-11-06T07:14:34+01:00 (4 weeks ago)
Author:
simon04
Message:

see #7548 - Re-organize the preference dialog (disable tab titles for com.apple.laf.AquaLookAndFeel)

File:
1 edited

Legend:

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

    r17292 r17297  
    3333import javax.swing.JScrollPane;
    3434import javax.swing.JTabbedPane;
     35import javax.swing.LookAndFeel;
     36import javax.swing.UIManager;
    3537import javax.swing.event.ChangeEvent;
    3638import javax.swing.event.ChangeListener;
     
    7375import org.openstreetmap.josm.tools.Logging;
    7476import org.openstreetmap.josm.tools.Pair;
    75 import org.openstreetmap.josm.tools.PlatformManager;
    7677import org.openstreetmap.josm.tools.Utils;
    7778import org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler;
     
    515516
    516517    private void insertGUITabsForSetting(Icon icon, TabPreferenceSetting tps, final Component component, int position) {
    517         if (PlatformManager.isPlatformOsx()) {
     518        LookAndFeel currentLAF = UIManager.getLookAndFeel();
     519        if ("com.apple.laf.AquaLookAndFeel".equals(currentLAF.getClass().getName())) {
    518520            // macOS / AquaLookAndFeel does not support horizontal tabs, see https://josm.openstreetmap.de/ticket/7548#comment:80
    519521            insertTab(null, icon, component, tps.getTooltip(), position);
Note: See TracChangeset for help on using the changeset viewer.