-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
Huge Icons in OS X #550
Comments
Thanks for the heads-up. I want to see if there's something we can do about this. I think this is mainly defaulted by the OS, as we do not set explicit sizes, but previously we were "getting lucky" by using PNGs that have an implicit size. We now use SVGs which automatically scale up, but perhaps in an unfortunate way. We don't seem to see this issue on Linux, tho. Using stylesheets it's supposedly possible to set the icon sizes, but I haven't dug too deep into that. I would also need an OSX laptop (I let my friend borrow my retina laptop) since I'm full-time on my debian/sid laptop these days so it might be a bit before I get a chance to poke at this. I do have a non-retina mac laptop around.. do you know if this is reproducible on non-retina OSX? |
No idea about non-retina, but I could check. If you point me to where the modifications would have to be made, I'd be more than happy to poke around myself. 😄 |
Later we can adjust create_menu() to apply styling, which can help get us towards solving #550. Signed-off-by: David Aguilar <davvid@gmail.com>
The place to apply styling would be in Something like this diff applied against the latest in
but this does not seem to work, specifically on OS X it seems. It seems that the icon sizes cannot be customized there, as OS X sets the icon sizes itself: https://forum.qt.io/topic/63483/qmenu-icon-size/3 I wonder if there's a way to have a 2nd svg file include the main icon, and apply some image scale to internally add some buffer. Or just have a 2nd version of the icons. If you can tweak things to look good there I'd be happy to work those changes in. |
Also, the single place where icon paths are defined is in |
You can't really modify the SVGs or wrap them in another because they'll always expand to the size of the container Qt wants them to filll. The closest I've gotten is wrapping the SVG path with a transformation and changing the height while leaving the width fixed: <svg height="512" width="768" xmlns="http://www.w3.org/2000/svg">
<g transform="scale(0.5)">
<path d="M768 320L256 832 0 576l96-96 160 160 416-416 96 96z" />
</g>
</svg> Thoughts/other approaches:
Also this is a retina problem. Frescobaldi seemed to have the same issue before Qt fixed the bug. |
Upgrading to 2.5 fixed the problem for me |
You had me excited for a moment... I'm still having the same issue while running 2.6. 😞 |
Haven't heard from the OS X folks about Qt5, so I'm assuming that moving to Qt5 fixed it. |
After an upgrade to v2.4, all the icons are huge. I'm running OS X 10.11.2 with Qt v4.8.7.
The text was updated successfully, but these errors were encountered: