-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Best effort for pixel perfect icon rendering #4552
Conversation
… pixels, so icons won't be blurry
thanks for your efforts on this, i will report results
|
Not sure if I could do anything about these. |
@yw4z Also I've noticed your comment about icon size using odd numbers #4368 (comment) Technically you're right but some of the existing code make the assumption that icon sizes are in even numbers and I'm not sure how well it might behave. If you are planing to use icons with odd numbers, could you try using the binary of this PR and replace with your icons and see if they work well? |
@Noisyfox changing this line to int fixed issue for toolbar popup icons. they are pixel perfect now :) OrcaSlicer/src/slic3r/GUI/IconManager.cpp Line 376 in f3b3e92
included this to my UI commit |
Popups? Did you mean those gizmo panels? |
yes also fixed blur on keyboard cheat sheet button |
@SoftFever |
@Noisyfox @SoftFever trying to make icons pixel perfect is unnecessary with scaling imo. i guess only necessary change is this line because icons already not supports lower resolutions other solutions for preventing scaling on icons • Removing separators. this will reduce total with -40 px of toolbar
Here is comparison with / without separators • Reducing size of left spacing between sidebar toggle and toolbar • Moving sidebar toggle to top bar. i guess this change will make a huge difference but requires more code changes • Moving sidebar toggle to vertically center and exclude from toolbar calculations. Removing sidebar toggle from toolbar calculations saves additional 50px before triggering scaling. i added 2 lines for excluding and preventing rendering toggle button after removing sidebar toggle, separators & left and right spacers. total width reduced by 110px. so scaling not starts before that Preview of sidebar toggle with vertically centered (not included to code changes) i didnt commited because tried completely different route. respect for your efforts |
This does look better. |
That's a pity. |
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.
Looks good
Thank you
This currently requires the toolbar icon to have even size.
Fixes #4328
Before:

After:

Toolbar icons should be noticeably sharper.