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
UI: Add space for right arrow in menu #8082
Conversation
Does this behave properly with right-to-left locales? |
No idea, what would be a good way to test that? |
I don't really know, sorry. On Linux, usually launching the application with an RTL locale (e.g. |
I came here to ask the same question. Ideally, I'd like to know how this behaves in an RTL language/locale context. |
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.
8655816
to
74ae2b0
Compare
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.
LGTM from the screenshots
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.
Seems better than the current situation.
Looks good to me.
Description
Add space for right arrow in menu
Motivation and Context
When making custom menu I noticed that the right arrow was on top of the text.
It looks to me that it is caused by setting the padding for QMenu::item to 6px in the theme.
Now I override only the right padding for QMenu::item to 12px
Before:
After:
The dark and system theme don't set the padding and don't have the issue.
How Has This Been Tested?
On windows 64 by having only 1 menu item that has a right arrow.
Types of changes
Checklist: