diff options
author | David Schweinsberg <[email protected]> | 2019-08-31 12:59:49 -0700 |
---|---|---|
committer | David Schweinsberg <[email protected]> | 2019-08-31 12:59:49 -0700 |
commit | fc3383d430ffcb313c155d31a1116fa846ff28d4 (patch) | |
tree | cbec97450f5fff870c5a6703ee60138513f883bf | |
parent | 492485c177997484506017c4e89476191134bb84 (diff) |
Use correct menus on macOS
-rw-r--r-- | src/net/java/dev/typecast/app/editor/Main.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/java/dev/typecast/app/editor/Main.java b/src/net/java/dev/typecast/app/editor/Main.java index 7f79bb6..e0db0d7 100644 --- a/src/net/java/dev/typecast/app/editor/Main.java +++ b/src/net/java/dev/typecast/app/editor/Main.java @@ -76,6 +76,10 @@ public class Main { */ public Main() { + // Before loading Swing, set macOS-specific properties + System.setProperty("apple.awt.application.name", "Typecast"); + System.setProperty("apple.laf.useScreenMenuBar", "true"); + // Show a splash screen whilst we load up Splash splash = new Splash(); splash.setVisible(true); |