-
Notifications
You must be signed in to change notification settings - Fork 16
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
HiDPI scaling is not respected for menu icons and padding #39
Comments
The horzPadding is now smallSpacing instead of a hardcoded 4px.
Hmm, if I uncomment the code to display the normal "Application Menu" icon button that tells KWin to display the menu, it draws the entire menu at 100%. Even the text is at 100% scaling. Even breeze seems to have this bug. Can you confirm this @paulmcauley? |
It is possible to fix the small icon with QProxyStyle. int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const override {
qCDebug(category) << metric;
if (metric == QStyle::PM_ButtonIconSize) {
return QProxyStyle::pixelMetric(metric, option, widget) * pixelRatio;
}
return QProxyStyle::pixelMetric(metric, option, widget);
} Then |
I have a HiDPI display at 250% scaling.
Here is a screenshot of how the Material menu looks:

Here is a screenshot of how a normal menu looks:

As you can see, the menu's icon size and padding are too small when scaling is used.
The text was updated successfully, but these errors were encountered: