Repository navigation
gicon-based buttons to workaround the scaling issue - #356
Conversation
|
@jonian wdyt if I convert the remaining themes? |
1fdc74d to
dcb6a23
Compare
dcb6a23 to
a9b8b3c
Compare
a9b8b3c to
ac85899
Compare
|
Hello @jonian I tested it locally, but more testing is always welcomed. |
ac85899 to
9a2d4b5
Compare
|
Hey @ilya-m32, thanks for working on this! It looks mostly good and the only issue I found is that, if I disable the workaround setting, the icons do not revert to the default (css) mode if I don't also change the theme. Also I would avoid making some of the code changes in this PR and I will comment on them separately. |
|
@jonian thanks for the swift reaction - I applied suggested changes. I also added a callback on configuration change, so it will update the rendering mode without extension/shell restart. I've noticed that the fix is not pixel perfect but it should be good enough for a temporary workaround in my opinion. |
|
@ilya-m32 looks great, thank you for your contribution! |

Needs discussion, not for merging
A workaround for #106
It seems that the problem still exist in gnome-shell=45.0 and there's no reaction from the gnome team.
Since the bug is very annoying to me, I decided to take a look if there are any fixes we can do now. I found that if we leverage gicons instead of CSS backgrounds, shell renders icon size correctly after the screen scale changes. It is less convenient than CSS-based styling but works as intended.
For testing purposes, I converted
adwaitaandambiencethemes to gicons in backward-compatible fashion and personally satisfied with this workaround.@jonian let me know what do you think. I can make a separate independent theme with this fix (for people like me with multi-scale setups) or try to convert other themes to gicons as well.
To all: extra testing could be also useful. I only tested this is gnome 45.0 with these two themes.
UPD 26.10.2024

As agreed before, I converted this MR to make workaround optional. It can be enabled via extension options.