From fc3383d430ffcb313c155d31a1116fa846ff28d4 Mon Sep 17 00:00:00 2001 From: David Schweinsberg Date: Sat, 31 Aug 2019 12:59:49 -0700 Subject: Use correct menus on macOS --- src/net/java/dev/typecast/app/editor/Main.java | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3