Skip to content
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

Fix blurry tray icons for HiDPI displays #1174

Merged
merged 1 commit into from
Jul 21, 2021
Merged

Fix blurry tray icons for HiDPI displays #1174

merged 1 commit into from
Jul 21, 2021

Conversation

mswiger
Copy link
Contributor

@mswiger mswiger commented Jul 21, 2021

Fixes #1077. The approach here is to scale the icon size using the Gtk scale factor, create a cairo surface from the loaded pixbuf, and use that cairo surface for the image. The cairo surface will use the scale factor from the given window, which makes everything render correctly.

Screenshots:
before
after

@Alexays Alexays merged commit 811f089 into Alexays:master Jul 21, 2021
@Alexays
Copy link
Owner

Alexays commented Jul 21, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blurry tray icons
2 participants