-
Notifications
You must be signed in to change notification settings - Fork 340
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
limit icon size when we have a fixed width #548
Conversation
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.
I'm not sure if this is the right place. Regarding shrink
, I guess this has to get calculated more dynamically on every run. Right?
Shrink will still work. The image is limited to the max_win_width/2, but when the rest of the notification is smaller than half the width it will still shrink the window. It looks rather weird but that's always the case when you have a huge image. I agree that there are probably better solutions to this if you factor this into the drawing/icon code but Another way to see it is that the user created a configuration that is broken. It would be nice to have the option to resize the image to a size that's fit the rest of the notification. In other words layout the text first and derive the icon size from the resulting text size. Anyway you know the code better than me at this point so I leave the decision up to you wether you |
29fba6e
to
cebad7d
Compare
@knopwob seems to be inactive here so I took over in order to unblock 1.4.0. Can't see a better solution so I just added some warning messages to call it a day. |
Could you please rebase on current master, to run through CircleCI, too? |
cebad7d
to
c99f715
Compare
Done! |
It does not work for me correct,
But i get:
Does i something wrong? |
This is a proposed fix for #540.
I'm not reallty sure/happy with this fix but it seems to be the easiest.
I'm not sure wether we should overwrite
max_icon_size
if it's not 0, or should we assume the user knows what he's doing?