Cursor goes to largest size when using fractional scaling and png cursors
Yohannnn opened this issue · 10 comments
I tried to extract a cursor png theme however when I set my cursor size to 24 the cursor was massive. I noticed that when I switched from my normal scale of 1.6 to 1 the cursor size went back to normal. It seems like it's just defaulting to the largest cursor size when using fractional scaling.
can you try compiling and using the test to render a cursor at 24 * 2
(aka 48) and seeing if it turns out "massive"?
When I switch to using a scale of 2 instead of 1.6 the cursor is the correct size.
that does not answer my question
Sorry, I misunderstood the question, setting the size to 48 with hyprctl still gives the same size cursor as 24. I've done some more testing and I've found some very weird behavior. Trying to use a size 1-9 results in a cursor slightly smaller than the xcursor which is using the theme that I extracted this hyprcursor theme from at a size of 24. Trying sizes 10-14 is decently bigger than the xcursor. 15 is smaller than the size from setting it to a size in 1-9. 16-19 is the same as 10-14. 20 Is the same as 1-9. 21-29 gives me the largest size ive seen so far. 30 is slightly larger than the xcursor. I'm not sure if there is a pattern here but either way this doesn't feel like it should be the correct behavior.
what's the resampling setting on the cursor shapes?
Hi, I have the same issue. I am using Adwaita theme from /usr/share/icons/Adwaita on Arch. My scale factor is set to 1.25
Idk what you mean by resampling setting but I tried all the algorithms.
--resize none => huge size but sharp
--resize nearest => right size but pixelated
--resize bilinear => right size but blurry
that's expected for png cursors. Use an svg theme for the right size without any pixelation/blur.
@vaxerski I think this is what hyprwm/Hyprland#6017 is referring to
Maybe this is the reason. hyprwm/Hyprland#6017 (comment)
yea, needs a fix