Skip to content

scale icons#22

Merged
AMNatty merged 1 commit intoAMNatty:developmentfrom
dchinmay2:push-uxrxlrpwsroq
Nov 2, 2025
Merged

scale icons#22
AMNatty merged 1 commit intoAMNatty:developmentfrom
dchinmay2:push-uxrxlrpwsroq

Conversation

@dchinmay2
Copy link
Copy Markdown
Contributor

fixes #21

@dchinmay2
Copy link
Copy Markdown
Contributor Author

re: the title/commit message, not sure if it scales only the icons or the whole thing, nevertheless it seems to fix the blurriness

@dchinmay2
Copy link
Copy Markdown
Contributor Author

there's also https://gtk-rs.org/gtk4-rs/stable/latest/docs/gdk4/prelude/trait.SurfaceExt.html#method.scale which doesn't round up fractional scales but it also made things blurry on my 1.5x scaled display

@AMNatty
Copy link
Copy Markdown
Owner

AMNatty commented Nov 2, 2025

This approach scales the surface used for the rasterization of the SVG so this should work fine

@AMNatty AMNatty merged commit e7c1757 into AMNatty:development Nov 2, 2025
@dchinmay2
Copy link
Copy Markdown
Contributor Author

dchinmay2 commented Nov 2, 2025

yeah SVGs being blurry on scaled monitors had only one obvious explanation - they were being concretized at a lower resolution and then scaled later, so I just looked where the numbers were in the code

TIL that SVG concretization is called rasterization, thanks

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.

Blurry icons

2 participants