Skip to content

Commit

Permalink
Windows look & feel
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefterv committed Dec 18, 2024
1 parent 7fb8b2f commit 2fc0d69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/processing/app/ui/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import javax.swing.text.html.*;
import javax.swing.undo.*;

import com.formdev.flatlaf.FlatLaf;
import com.formdev.flatlaf.util.SystemInfo;
import processing.app.Base;
import processing.app.Formatter;
Expand Down Expand Up @@ -594,6 +595,13 @@ public void updateTheme() {
toolTipWarningColor = Theme.get("errors.selection.warning.bgcolor");
toolTipErrorColor = Theme.get("errors.selection.error.bgcolor");

if(Platform.isWindows()) {
UIManager.put("RootPane.background", color);
UIManager.put("TitlePane.embeddedForeground", Theme.getColor("editor.fgcolor"));
getRootPane().updateUI();
UIManager.put("RootPane.background", null);
}

JPopupMenu popup = modePopup.getPopupMenu();
// Cannot use instanceof because com.formdev.flatlaf.ui.FlatPopupMenuBorder
// is a subclass of EmptyBorder, so just override each time. Cannot set
Expand Down

0 comments on commit 2fc0d69

Please sign in to comment.