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
Set minimum image/icon size #392
Comments
There is an option to downscale an icon but upscaling would have some serious quality issues. Is there a reason why you're not using a higher resolution icon pack? |
Yes I am entirely aware of this :) |
It ended up being quite simple; see PR #393. Works for me :) And it really helps. |
I'm not a user of a HiDPI screen. Can somebody explain me this situation? I see and understand, why the image gets too small, when using higher DPIs and your software is not DPI-aware. But if I understand correctly, dunst should be DPI-aware (#240). So, why does the icon get displayed too small? Shouldn't be the best fix to scale the icon DPI-aware, too? |
hmm.. I'm actually using an older snapshot from this summer because the xrandr library in devuan is a bit old. I failed to realize there was dpi stuff taking care of this in latest version so I took my own approach instead. So maybe we can close this for now and reopen later if there is still need. Sorry for the disturbance. |
@xkr47 Just because I say dunst should be DPI-aware, doesn't make dunst automatically fully DPI-aware. There may be some bugs. Are you sure, that dunst scales now the icon correct? |
It would still be nice to have min_icon_size for icon themes consisting solely of SVG images (such as https://github.com/daniruiz/flat-remix). |
This would be a fantastic feature for SVG as so many laptops have higher resolutions now. Dunst renders svg icons very small and I can't find a way to make them larger. |
@nikarh @ShawnMcCool, |
@xkr47 I'm not sure at what size gdk loads svgs by default but from what you're doing there might be quality loss when upscaling the loaded svg since it's converted to bitmap. If you'd like to prepare it for a proper PR/merge then you can use |
Wouldn't it make sense to do both up & downscaling using that method then? Also great idea, thanks! |
Ok looking at the code I see I misunderstood your point a bit.. but So I think the best result would be keeping my code and also use the |
I forgot about that detail, you're right.
This sounds good to me, if you can add that and submit a PR I'll merge it. |
@nikarh @ShawnMcCool this feature is now merged to master! Look out for the next release for some scaling goodness! :)
|
Hey thanks so much.
…On Wed, Dec 18, 2019 at 3:12 PM Jonas Berlin ***@***.***> wrote:
@nikarh <https://github.com/nikarh> @ShawnMcCool
<https://github.com/ShawnMcCool> this feature is now merged to master!
Look out for the next release for some scaling goodness! :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#392?email_source=notifications&email_token=AAEI43MPHLWMBB2S2F47HGLQZIVTDA5CNFSM4D4VFON2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHGHOHY#issuecomment-567047967>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEI43NQRTP7KRG7H7XZK73QZIVTDANCNFSM4D4VFONQ>
.
|
On HiDPI (280dpi) displays icons embedded in notifications are sometimes too small to see, so an option to set the minimum image/icon size (e.g. upscale image if too small) would be appreciated.
The text was updated successfully, but these errors were encountered: