Changeset 36128 in osm for applications/editors
- Timestamp:
- 2023-09-06T22:40:20+02:00 (15 months ago)
- Location:
- applications/editors/josm/plugins/flatlaf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/flatlaf/ivy.xml
r36034 r36128 2 2 <info organisation="org.openstreetmap.josm.plugins" module="flatlaf"/> 3 3 <dependencies> 4 <dependency conf="default->default" org="com.formdev" name="flatlaf" rev=" 2.6"/>4 <dependency conf="default->default" org="com.formdev" name="flatlaf" rev="3.2"/> 5 5 </dependencies> 6 6 </ivy-module> -
applications/editors/josm/plugins/flatlaf/src/org/openstreetmap/josm/plugins/flatlaf/FlatLafPlugin.java
r35572 r36128 6 6 import org.openstreetmap.josm.plugins.Plugin; 7 7 import org.openstreetmap.josm.plugins.PluginInformation; 8 import org.openstreetmap.josm.tools.PlatformManager; 9 import org.openstreetmap.josm.tools.Utils; 8 10 9 11 import com.formdev.flatlaf.FlatDarculaLaf; … … 12 14 import com.formdev.flatlaf.FlatLaf; 13 15 import com.formdev.flatlaf.FlatLightLaf; 16 import com.formdev.flatlaf.themes.FlatMacDarkLaf; 17 import com.formdev.flatlaf.themes.FlatMacLightLaf; 14 18 15 19 /** … … 26 30 super(info); 27 31 UIManager.getDefaults().put("ClassLoader", getClass().getClassLoader()); 28 UIManager.installLookAndFeel("FlatLaf Darcula", FlatDarculaLaf.class.getName()); 29 UIManager.installLookAndFeel("FlatLaf Dark", FlatDarkLaf.class.getName()); 30 UIManager.installLookAndFeel("FlatLaf IntelliJ", FlatIntelliJLaf.class.getName()); 31 UIManager.installLookAndFeel("FlatLaf Light", FlatLightLaf.class.getName()); 32 // Load the built-in themes 33 FlatDarculaLaf.installLafInfo(); 34 FlatDarkLaf.installLafInfo(); 35 FlatIntelliJLaf.installLafInfo(); 36 FlatLightLaf.installLafInfo(); 37 FlatMacDarkLaf.installLafInfo(); 38 FlatMacLightLaf.installLafInfo(); 32 39 33 40 // enable loading of FlatLaf.properties, FlatLightLaf.properties and FlatDarkLaf.properties from package 34 41 FlatLaf.registerCustomDefaultsSource("org.openstreetmap.josm.plugins.flatlaf", getClass().getClassLoader()); 42 if (PlatformManager.isPlatformOsx() && Utils.getSystemProperty("apple.awt.application.appearance") == null) { 43 // See https://www.formdev.com/flatlaf/macos/ 44 // This makes the title bar match the system settings 45 Utils.updateSystemProperty("apple.awt.application.appearance", "system"); 46 } 35 47 } 36 48
Note:
See TracChangeset
for help on using the changeset viewer.