File tree 3 files changed +32
-6
lines changed
main/resources/processing/app/laf
3 files changed +32
-6
lines changed Original file line number Diff line number Diff line change
1
+ # The default is 8, which creates tiny nubby scroll bars
2
+ ScrollBar.width = 16
3
+
4
+ TitlePane.inactiveForeground = # 000000
5
+
6
+
7
+ # Better matched for macOS dark mode (but using everywhere)
8
+ # https://github.com/JFormDesigner/FlatLaf/issues/497
9
+
10
+ [dark] @background = # 1e1e1e
11
+ [dark] @foreground = # e0e0e0
12
+ [dark] @accentColor = # 107aff
13
+ [dark] @accentFocusColor = # 176896
14
+
15
+ [dark] Component.arrowType = chevron
16
+
17
+ [dark] CheckBox.icon.style = filled
18
+ [dark] CheckBox.icon[filled].selectedBorderColor = @accentColor
19
+ [dark] CheckBox.icon[filled].selectedBackground = @accentColor
20
+ [dark] CheckBox.icon[filled].checkmarkColor = @foreground
21
+
22
+ [dark] RadioButton.icon.style = filled
23
+ [dark] RadioButton.icon[filled].centerDiameter = 6
Original file line number Diff line number Diff line change 31
31
import processing .app .Preferences ;
32
32
import processing .core .PApplet ;
33
33
34
+ import javax .swing .*;
35
+
34
36
35
37
public class LinuxPlatform extends DefaultPlatform {
36
38
String homeDir ;
@@ -39,6 +41,9 @@ public class LinuxPlatform extends DefaultPlatform {
39
41
public void initBase (Base base ) {
40
42
super .initBase (base );
41
43
44
+ JFrame .setDefaultLookAndFeelDecorated (true );
45
+ System .setProperty ("flatlaf.menuBarEmbedded" , "true" );
46
+
42
47
// Set X11 WM_CLASS property which is used as the application
43
48
// name by Gnome 3 and other window managers.
44
49
// https://github.com/processing/processing/issues/2534
Original file line number Diff line number Diff line change @@ -618,12 +618,10 @@ public void updateTheme() {
618
618
toolTipWarningColor = Theme .get ("errors.selection.warning.bgcolor" );
619
619
toolTipErrorColor = Theme .get ("errors.selection.error.bgcolor" );
620
620
621
- if (Platform .isWindows ()) {
622
- UIManager .put ("RootPane.background" , color );
623
- UIManager .put ("TitlePane.embeddedForeground" , Theme .getColor ("editor.fgcolor" ));
624
- getRootPane ().updateUI ();
625
- UIManager .put ("RootPane.background" , null );
626
- }
621
+ UIManager .put ("RootPane.background" , color );
622
+ UIManager .put ("TitlePane.embeddedForeground" , Theme .getColor ("editor.fgcolor" ));
623
+ getRootPane ().updateUI ();
624
+ UIManager .put ("RootPane.background" , null );
627
625
628
626
JPopupMenu popup = modePopup .getPopupMenu ();
629
627
// Cannot use instanceof because com.formdev.flatlaf.ui.FlatPopupMenuBorder
You can’t perform that action at this time.
0 commit comments