diff options
| author | 2020-06-06 08:38:23 +0100 | |
|---|---|---|
| committer | 2020-06-06 03:38:23 -0400 | |
| commit | fba687fc789d4d9ecd18e76ee88cd176ebb50881 (patch) | |
| tree | 2905edeb1ebe7609ad435cfdf8b2c7d79aee90a6 | |
| parent | Merge pull request #254 from 2xsaiko/patch-1 (diff) | |
| download | enigma-fba687fc789d4d9ecd18e76ee88cd176ebb50881.tar.gz enigma-fba687fc789d4d9ecd18e76ee88cd176ebb50881.tar.xz enigma-fba687fc789d4d9ecd18e76ee88cd176ebb50881.zip | |
Use MacOS menu bar style (#255)
| -rw-r--r-- | enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java b/enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java index 0a5d3f7d..2ac15284 100644 --- a/enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java +++ b/enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java | |||
| @@ -126,6 +126,8 @@ public class Gui { | |||
| 126 | }); | 126 | }); |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | System.setProperty("apple.laf.useScreenMenuBar", "true"); | ||
| 130 | |||
| 129 | this.controller = new GuiController(this, profile); | 131 | this.controller = new GuiController(this, profile); |
| 130 | 132 | ||
| 131 | Themes.addListener((lookAndFeel, boxHighlightPainters) -> SwingUtilities.updateComponentTreeUI(getFrame())); | 133 | Themes.addListener((lookAndFeel, boxHighlightPainters) -> SwingUtilities.updateComponentTreeUI(getFrame())); |