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

glcanvas: scale icons using icon size, not scale factor #8301

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

buzzhuzz
Copy link
Contributor

@buzzhuzz buzzhuzz commented Feb 3, 2025

Description

Calculate toolbar icon size the same way as it done on windows:
manipulate icon size, not toolbar scale.

Scaling icons this way makes images sharper since they getting rasterized to a target size rather than being rasterized for 40px and scaled to a desired size later.

Screenshots/Recordings/Graphs

Test samples with different toolbar scaling/app window width (top one is original, bottom one - updated)

Screenshot from 2025-02-03 21-12-23

Screenshot from 2025-02-03 21-12-40

Screenshot from 2025-02-03 21-13-10

Screenshot from 2025-02-03 21-13-26

Tests

Tested on Linux only.

Calculate toolbar icon size the same way as it done on windows:
 manipulate icon size, not toolbar scale.

Scaling icons this way makes images sharper since they getting
rasterized to a target size rather than being rasterized for 40px and
scaled to a desired size later.
@buzzhuzz
Copy link
Contributor Author

buzzhuzz commented Feb 3, 2025

Need someone to test it on MacOS.

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.

2 participants