FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

continued work on the look and feel · processing/processing4@def1be0 · GitHub

Repository navigation

Commit def1be0

Browse files
committed
continued work on the look and feel
1 parent b565768 commit def1be0

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎app/src/processing/app/platform/DefaultPlatform.java‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ public void initBase(Base base) {
110110
public void setLookAndFeel() throws Exception {
111111
String laf = Preferences.get("editor.laf");
112112
if (laf == null || laf.length() == 0) { // normal situation
113-
//UIManager.setLookAndFeel(new PdeLookAndFeel());
114-
115113
/*
116114
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
117115
// Default was 8x8, but that's not enough with the insets and rounded rect
@@ -120,21 +118,22 @@ public void setLookAndFeel() throws Exception {
120118
UIManager.put("ScrollBar.minimumThumbSize", new Dimension(16, 24));
121119
*/
122120

121+
//UIManager.setLookAndFeel(new processing.app.laf.PdeLookAndFeel());
122+
123123
// dummy font call so that it's registered for FlatLaf
124124
Toolkit.getSansFont(12, Font.PLAIN);
125-
126-
//
125+
// pull in FlatLaf.properties from the processing.app.laf folder
127126
FlatLaf.registerCustomDefaultsSource("processing.app.laf");
127+
// start with Light, but updateTheme() will be called soon
128128
UIManager.setLookAndFeel(new FlatLightLaf());
129-
//UIManager.put("ScrollBar.width", 16); // moved to properties
130129

131130
} else {
132131
UIManager.setLookAndFeel(laf);
133132
}
134133

135134
/*
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()) {
138137
System.out.println(entry.getKey() + " = " + entry.getValue());
139138
}
140139
*/

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL