-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove menu icons from non-document menu actions on macOS/OS X #3349
Comments
Probably the more important part of this is the UI experience. OSs which can't align text in a menu should have the icons turned off, period. Please issue a Pull Request with |
Once I started work on this I realised that files not having icons in the "New from template" and "Recently Opened Projects" sub-menus looks a bit weird. By way of comparison, "Preview.app" shows icons in its "Open Recent" sub-menu. This led me to wonder what the official Apple Human Interface Guidelines say: "Icons and Symbols in Menus". My reading of the HIG suggests that keeping the icons in the aforementioned sub-menus is legit, so I'll see how much effort it is to retain them while eliminating the rest. It seems like Other than that, things look nice and clean. :) |
I just read a bug report with users complaining about this identical behavior, except when in dark mode. Apparently there's an unmerged feature to help... https://codereview.qt-project.org/#/c/115120/ Linked from https://bugreports.qt.io/browse/QTBUG-42109. For the short-term, we can use a quick hack, such as inverting the color palette for these icons. http://doc.qt.io/qt-5/qimage.html#invertPixels |
I managed to get the submenu icons to display (still as white icons for default theme, as icons for classic theme) by using I've worked out a few variations of a workaround for the apparent bug and plan to use the one which is least disruptive to the existing code and requires least additional code. |
So, once Let's look at the different approaches we can use by using this example from
Making icons visibleChained method callsThe simplest approach would be to use:
However, I wasn't sure if "chained" method calls like that were within the lmms "style" (it's seems they're used sometimes but not frequently) and while (in theory) it should be a no-op for other platforms, since we're wanting to make this change be Apple only it would be a little "messy" to make the compilation conditional. That consideration becomes a somewhat moot point however due to the bug mentioned in my previous comment. Using
|
Would've been a good idea to create a separate issue earlier but oh well... :) #3362 is now for handling icon inversion but I'm not planning to touch that for the moment. This is now just for removing the menu icons. |
Displaying menu icons on macOS/OS X does not fit the standard OS guidelines unless they represent documents. See LMMS#3349. Note: Requires a follow up Qt bug workaround to show icons in some submenus.
Closed by #3363. |
(Originally this bug was this but see #3362:
As previously mentioned (#2890 (comment)) the new white menu icons do not display correctly on Mac OS X 10.8 with Qt5:
Related version info:
I assume if they display on later OS X versions it's due to a change in menu background colour?
)
Now:
FWIW, I think on Mac OS X / macOS icons should not be displayed on menus at all, as it's not "standard practice" on the platform and IMO makes lmms appear "less native". Further details on request. :)
It appears specifying
Qt::AA_DontShowIconsInMenus
would enable this but I've not tested it yet.The text was updated successfully, but these errors were encountered: