File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
app/src/processing/app/ui Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 4848import javax .swing .text .html .*;
4949import javax .swing .undo .*;
5050
51+ import com .formdev .flatlaf .FlatLaf ;
5152import com .formdev .flatlaf .util .SystemInfo ;
5253import processing .app .Base ;
5354import 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
You can’t perform that action at this time.
0 commit comments