Icon Size in Xfce 4 Window Buttons

Published | Go Back

I’ve just fig­ured out how to change the icon size for Xfce 4 win­dow but­tons in task list.

I’m us­ing the Arc Darker theme. I’ve con­fig­ured the task list to only show win­dow but­tons so that they take less space in the top-right cor­ner of the screen and play well with the ti­tle bar when a win­dow is max­i­mized. I al­ways feel that the icons in the win­dow but­tons are too small.

The key to solve this prob­lem is to fig­ure out which style is ap­plied to the win­dow but­tons. I know lit­tle about GTK themes, so here is my guess­ing and ob­ser­va­tions through trial and er­ror.

For the Arc Darker theme, the base theme file on my Arch Linux is


Looking at the con­tent of the file, it in­cludes other theme files. One of them is panel.rc, which seems promis­ing.

At the end of panel.rc, there is a line that says

widget "*XfceTasklist*" style "panelbuttons"

I think this is what we need. Looking at the panelButtons style in the same file, xthickness is set to 4. I’m not ex­actly sure what this prop­erty means, but it seems that it is used for cal­cu­lat­ing var­i­ous padding spaces. I change it to 2, and the icons im­me­di­ately ap­pear larger af­ter switch­ing to an­other theme and back. The smaller that value is, the larger the icons will be.

This so­lu­tion has many draw­backs. For ex­am­ple, the mod­i­fi­ca­tion may be over­rid­den if I up­date the Arc theme pack­age. For now, that’s good enough for me.