sindresorhus / Settings

⚙ Add a settings window to your macOS app in minutes
MIT License
1.43k stars 100 forks source link

Change the "Window" menu title? #53

Open sindresorhus opened 4 years ago

sindresorhus commented 4 years ago

When there are multiple tabs, the window menu would look like:

Screenshot 2020-06-08 at 22 19 57

Where General is the preferences window title. However, I feel it's not clear enough to the user that General mean the preferences window. Also, what if the main window has a name that is the same or close to the preferences tab name. That would be confusing.


When there's no tabs, the HIG says that the window title should be the app name and then Preferences, but that can look weird:

Screenshot 2020-06-08 at 22 18 38

The macOS Human Interface Guidelines doesn't say anything about this.

My preference would be to use Preferences — General for the title in the Window menu when there are multiple tabs, and Preferences when there's none.

Xcode uses this convention:

Screenshot 2020-06-08 at 22 22 42

Changing the title of only the "Window" menu items is possible with:

NSApp.changeWindowsItem(window, title: "Preferences — General", filename: false)

Thoughts?