Changeset 35572 in osm for applications/editors/josm


Ignore:
Timestamp:
2020-10-08T20:26:16+02:00 (4 years ago)
Author:
simon04
Message:

fix #19819 - FlatLaf: specify/override colors (patch by DevCharly)

Location:
applications/editors/josm/plugins/flatlaf/src/org/openstreetmap/josm/plugins/flatlaf
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/flatlaf/src/org/openstreetmap/josm/plugins/flatlaf/FlatLafPlugin.java

    r35541 r35572  
    1010import com.formdev.flatlaf.FlatDarkLaf;
    1111import com.formdev.flatlaf.FlatIntelliJLaf;
     12import com.formdev.flatlaf.FlatLaf;
    1213import com.formdev.flatlaf.FlatLightLaf;
    1314
     
    2930        UIManager.installLookAndFeel("FlatLaf IntelliJ", FlatIntelliJLaf.class.getName());
    3031        UIManager.installLookAndFeel("FlatLaf Light", FlatLightLaf.class.getName());
     32
     33        // enable loading of FlatLaf.properties, FlatLightLaf.properties and FlatDarkLaf.properties from package
     34        FlatLaf.registerCustomDefaultsSource("org.openstreetmap.josm.plugins.flatlaf", getClass().getClassLoader());
    3135    }
    3236
Note: See TracChangeset for help on using the changeset viewer.