| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -110,8 +110,6 @@ public void initBase(Base base) { | |||
| 110 | 110 | public void setLookAndFeel() throws Exception { | |
| 111 | 111 | String laf = Preferences.get("editor.laf"); | |
| 112 | 112 | if (laf == null || laf.length() == 0) { // normal situation | |
| 113 | - //UIManager.setLookAndFeel(new PdeLookAndFeel()); | ||
| 114 | - | ||
| 115 | 113 | /* | |
| 116 | 114 | UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | |
| 117 | 115 | // Default was 8x8, but that's not enough with the insets and rounded rect | |
@@ -120,21 +118,22 @@ public void setLookAndFeel() throws Exception { | |||
| 120 | 118 | UIManager.put("ScrollBar.minimumThumbSize", new Dimension(16, 24)); | |
| 121 | 119 | */ | |
| 122 | 120 | ||
| 121 | + //UIManager.setLookAndFeel(new processing.app.laf.PdeLookAndFeel()); | ||
| 122 | + | ||
| 123 | 123 | // dummy font call so that it's registered for FlatLaf | |
| 124 | 124 | Toolkit.getSansFont(12, Font.PLAIN); | |
| 125 | - | ||
| 126 | - // | ||
| 125 | + // pull in FlatLaf.properties from the processing.app.laf folder | ||
| 127 | 126 | FlatLaf.registerCustomDefaultsSource("processing.app.laf"); | |
| 127 | + // start with Light, but updateTheme() will be called soon | ||
| 128 | 128 | UIManager.setLookAndFeel(new FlatLightLaf()); | |
| 129 | - //UIManager.put("ScrollBar.width", 16); // moved to properties | ||
| 130 | 129 | ||
| 131 | 130 | } else { | |
| 132 | 131 | UIManager.setLookAndFeel(laf); | |
| 133 | 132 | } | |
| 134 | 133 | ||
| 135 | 134 | /* | |
| 136 | - UIDefaults defaults = UIManager.getDefaults(); | ||
| 137 | - for (Map.Entry<Object, Object> entry : defaults.entrySet()) { | ||
| 135 | + javax.swing.UIDefaults defaults = UIManager.getDefaults(); | ||
| 136 | + for (java.util.Map.Entry<Object, Object> entry : defaults.entrySet()) { | ||
| 138 | 137 | System.out.println(entry.getKey() + " = " + entry.getValue()); | |
| 139 | 138 | } | |
| 140 | 139 | */ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments