Skip to content

Commit 2fc0d69

Browse files
committed
Windows look & feel
1 parent 7fb8b2f commit 2fc0d69

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/processing/app/ui/Editor.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import javax.swing.text.html.*;
4949
import javax.swing.undo.*;
5050

51+
import com.formdev.flatlaf.FlatLaf;
5152
import com.formdev.flatlaf.util.SystemInfo;
5253
import processing.app.Base;
5354
import processing.app.Formatter;
@@ -594,6 +595,13 @@ public void updateTheme() {
594595
toolTipWarningColor = Theme.get("errors.selection.warning.bgcolor");
595596
toolTipErrorColor = Theme.get("errors.selection.error.bgcolor");
596597

598+
if(Platform.isWindows()) {
599+
UIManager.put("RootPane.background", color);
600+
UIManager.put("TitlePane.embeddedForeground", Theme.getColor("editor.fgcolor"));
601+
getRootPane().updateUI();
602+
UIManager.put("RootPane.background", null);
603+
}
604+
597605
JPopupMenu popup = modePopup.getPopupMenu();
598606
// Cannot use instanceof because com.formdev.flatlaf.ui.FlatPopupMenuBorder
599607
// is a subclass of EmptyBorder, so just override each time. Cannot set

0 commit comments

Comments
 (0)