- Timestamp:
- 2009-11-01T11:35:55+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r2343 r2371 308 308 try { 309 309 try { 310 String laf = Main.pref.get("laf" );310 String laf = Main.pref.get("laf", platform.getDefaultStyle()); 311 311 if(laf != null && laf.length() > 0) { 312 312 UIManager.setLookAndFeel(laf); -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r2370 r2371 468 468 public final void resetToDefault(){ 469 469 properties.clear(); 470 if (System.getProperty("os.name").toUpperCase().indexOf("WINDOWS") == -1) {471 put("laf", "javax.swing.plaf.metal.MetalLookAndFeel");472 } else {473 put("laf", "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");474 }475 470 } 476 471 -
trunk/src/org/openstreetmap/josm/tools/PlatformHook.java
r2017 r2371 100 100 */ 101 101 public String makeTooltip(String name, Shortcut sc); 102 103 public String getDefaultStyle(); 102 104 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java
r2025 r2371 263 263 return result; 264 264 } 265 266 @Override 267 public String getDefaultStyle() 268 { 269 return "javax.swing.plaf.metal.MetalLookAndFeel"; 270 } 265 271 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r2017 r2371 74 74 return result; 75 75 } 76 77 @Override 78 public String getDefaultStyle() 79 { 80 return "javax.swing.plaf.metal.MetalLookAndFeel"; 81 } 76 82 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r2017 r2371 53 53 Shortcut.registerSystemShortcut("system:help", "unused", KeyEvent.VK_F1, 0); 54 54 } 55 56 @Override 57 public String getDefaultStyle() 58 { 59 return "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; 60 } 55 61 } 56 57 58 59
Note:
See TracChangeset
for help on using the changeset viewer.