Skip to content

Commit

Permalink
hopefully change macos titlebar name
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotjarnit committed Nov 22, 2023
1 parent 9f68ba3 commit df71664
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public void setup() {
Container pane = window.getContentPane();
pane.setLayout(new BorderLayout());
pane.add(renderingEngine, BorderLayout.CENTER);

if (this.engine.getPlatform() == ElliotEngine.Platform.MAC) {
System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("apple.awt.application.name", this.engine.getOption(ElliotEngine.Options.NAME));
}
}

public void start() {
Expand Down

0 comments on commit df71664

Please sign in to comment.