Skip to content

xfwm4 Theme Default-hdpi gradually scaled up for modern HDPI Screens

xfwm4 Theme Default-hdpi gradually scaled up for modern HDPI Screens

Unlike with the MATE desktop, Xfwm4 does not automatically scale up the title bar according to increased scaling factors. I feel this problem should be handled by Xfce itself. Since this is not yet the case, as a work-around, I have gradually scaled up the xfwm4 theme Default-hdpi (for the Xfce4 Window Manager) for modern HDPI screens, based on the command suggested by https://github.com/CouldBeThis/xfwm4-themes-hiDPI :

find . -name "*.xpm" -o -name "*.png" | xargs -I {} magick {} -sample "${Scaling}%" {}

I have 'improved' the theme by replacing the X button, which always ends up fuzzy and pixelated, by a black square. The main trick was to edit relevant xpm files in a text editor and then fill up the X shape until it becomes a square. I also changed the RGB value for . (dot).

To make the theme also work for dark themes, I used the following command:

sed -i 's/#      c #000000/#      c #808080/g' *.xpm

Default-hdpiD_038-525_steps-of-13.zip

The folders in the .zip file can be directly extracted to ~/.local/share/themes . You will then be able to pick a theme that has a suitably scaled window title from inside the Xfce application Window Manager to match your chosen scale.

I hope a similar solution will be included in future releases of Xfce. I am not a developer, I just think Xfce is a great Linux desktop and the standard installation should include a solution for this problem. When I switched to Xfce from MATE, I found this issue particularly off-putting.Window-Manager_Screenshot

Edited by EasyReader2