shimmerproject / elementary-xfce

Elementary icons forked from upstream, extended and maintained for Xfce
GNU General Public License v2.0
274 stars 37 forks source link

Add HiDPI scaling support for high resolution displays #455

Closed newhoa closed 1 month ago

newhoa commented 4 months ago

@ochosi and @bluesabre, would you all be able to take a look at this HiDPI/Scaling option (and test it out)?

There was some question as to whether we should stay PNG or go SVG, so I thought an option for SVG would be a good compromise.

I would like to know if this method would work for distro-packaging. Would this allow the HiDPI version to be installable as a separate package?

Or should the SVG version of the theme just be installed as an extra theme (like elementary-xfce-dark)? This would increase package size.

Xfce added some icon scaling support in 4.18 and with 4.20 it will be supported throught the DE. The PNG theme won't work well for people who enable scaling (In xfce4-appearance > Settings > Window Scaling). So I'd like to work on some initial solution.

Anyway, I'd appreciate it if you all could take a look and let me know if this works or what I can do to make it work better. Thanks!


Add an optional --hidpi configure flag to allow installing as a fully SVG theme, with an updated index.theme for HiDPI support. This will be seen when Scaling is set to 2x or 3x.

Fixes issues where wrong icons are shown in some places with scaling enabled (like the Places sidebars in file managers), and blurry icon issues, especially with scaling enabled. The PNG non-HiDPI theme also restricted the amount of zoom steps the icons had with scaling enabled, so this should resolve that as well.

Fixes #124 Fixes #317 Fixes #362 Fixes #403

newhoa commented 4 months ago

Gah, I had to fix an error in the name of the index file. Sorry if that caused any problems to anyone.

Also, I should've added the command is:

./configure --hidpi --prefix=$HOME/.local

newhoa commented 1 month ago

Replacing this with #476