-
-
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
Make icons sharp in HiDPI screen #932
Conversation
cola/app.py
Outdated
@@ -178,6 +178,8 @@ def __init__(self, context, argv, locale=None, | |||
|
|||
self.context = context | |||
self._install_hidpi_config() | |||
# Make icons sharp in HiDPI screen | |||
self._app.setAttribute(Qt.AA_UseHighDpiPixmaps, True) |
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.
This makes sense to be in the ColaQApplication constructor instead.
We still support PyQt4, so please check hasattr(Qt, 'AA_UseHighDpiPixmaps')
before using it here.
This code probably doesn't work as written, and should be hitting a traceback -- self._app hasn't been assigned yet -- it's getting assigned on the line below.
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.
Please amend your commit with these fixes. High DPI icons should be really nice, thanks for the update.
Yes, please, that would be awesome. |
* guoyunhe/patch-1: Make icons sharp in HiDPI screen Signed-off-by: David Aguilar <davvid@gmail.com>
I've merged the current state as-is and speculatively updated the release notes to mention the upcoming updates to the icons. I'll merge make sure to merge that in asap. Thanks again |
Can you share your updated |
@davvid You can try this branch https://github.com/guoyunhe/git-cola/tree/make-icons-sharp What I did is to change the size and view port of SVG files to 22x22px. Tested with @1.5 scale factor. |
Thanks, I've now done this to all the icons, including the ones in the |
No description provided.