-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on macos, set preferences dialog title to the selected page title #11696
Conversation
a04db52
to
d3f437b
Compare
The Gnome Control Center has the same behavior. |
Works and looks good. |
That makes sense to me, and certainly if there is a precedent like Gnome Control Center on Linux. |
my 2 cents: The Mixxx preferences though do have a toolbar so personally I don't see the benefit. I prefer distinct window titles when Alt-Tab'ing through apps. For mulitple web browser windows the current page title is helpful since all browser windows are equal. |
I see your point, @ronso0, and I am not saying this is ideal, or that the HIG is without issues. But it definitely has resulted in a much more consistent user experience on macOS than the UI jungle of Linux and Windows. And I think that in this case, following the HIG on macOS makes sense. So how about we restrict this to macOS for now? (It is common practice, even with toolbars. See for example Safari's Preferences dialog. Even though it has a toolbar, the window title duplicates the selected item in the toolbar.) ![]() In the future, we can expand on this feature. On Linux and/or Windows we could for example add a prefix, e.g. "Preferences - Sound hardware" or "Mixxx Preferences - Sound hardware", if that would be more of your liking. Or just leave it as is. |
Sure, I don't object.
macOS, I hate floating toolbars :p
Yep, that would work for me. |
LGTM, thanks. @daschuer Any more comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No more comments. Thank you.
On macOS Ventura / SDK 13, the "Preferences..." application menu item has been renamed to "Settings...". This leads to an inconsistency with Mixxx preferences dialog title, which is still "Preferences".
According to Apple's Human Interface Guidelines, however, the title of the dialog should actually be neither Preferences nor Settings. See https://developer.apple.com/design/human-interface-guidelines/patterns/settings/ which reads:
As we do have multiple panes in the dialog (called pages, in the mixxx source code), where the current page is selected from the list (tree item) on the left, it makes sense to use that. This way we kill two birds with one stone: we don't have to worry about a inconsistency between the menu item and the dialog title, and we integrate more correctly in the host OS.
This PR sets the dialog title to the text (pageTitle) from the selected item from the tree. E.g. "Sound hardware", "Library", "Controllers". In the case of "Controllers", when a specific controller is selected from the subtree, this is concatenated, e.g. "Controllers - DJControl Inpulse 200". The dialog title is only changed on macOS, Linux and Windows behave like before.