-
Notifications
You must be signed in to change notification settings - Fork 492
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
Icons scaling problem #3176
Comments
It is actually the case for all the icons, not just user defined ones. |
related to #3177? |
No, #3177 I just accidently found while looking into this. |
"for all the icons," ? |
OK, I see that on Win. Will investigate. I'll hold #3178 until we know more. Could be related |
#3178 is not related, it is a real issue when the |
Agree. A serious bug. Will definitely be in 582. |
I added a fix for this, but I do not exactly trust it for the general case. Needs wider testing and leak check. |
No problem, this really is not a big deal |
The code in 2d30b87 does not seem to do the trick for me. |
Sigh... |
btw, which Icon are you having trouble with? |
BTW, the 100x200 size is there on purpose to illustrate another problem we have with the mark icons - making them square. We need some general refactoring here for 5.10... |
Yes, the refactor to separate GUI from CMD mode introduced a bunch of spaghetti. I've been simply hacking it ever since. Needs work. |
Corrected sizing logic of arbitrary icons dropped into UserIcons directory, when used as Mark icons. Not sure how to handle plugins. My inclination is not not fiddle with icons loaded by a plugin. I want to assume that each plugin knows what it wants, and does not expect it to be edited by core. Maybe simplistic? Also, brings up another issue: We currently cache svg icons after initial rendering, for performance. This seems OK for inbuilt svg icons, as shipped with release. But we do not want to cache UserIcons, I think. A user may need some time to get the icon exactly right to their preferences. Trying several times. If cached, the user would need to find and delete the cached copy. Tedious. Maybe want to do the same for all plugin svg operations? |
I would not touch this much more now. What we probably need is some metadata defining the behaviour of the icons - #3193. |
Can we close this, or... |
When user icon is first used, it is drawn small (Size of the icon in the dropdown)
![image](https://user-images.githubusercontent.com/249856/235355138-4887025e-06b9-4902-bff5-74a7c0c803ed.png)
After next start of the application and on all subsequent uses after that it is shown full size
![image](https://user-images.githubusercontent.com/249856/235355179-93d3bee3-0b8d-454a-a74d-78cd48ff629a.png)
Happens for both SVG and PNG user icons
The text was updated successfully, but these errors were encountered: