Saturday, March 1, 2014

Changing desktop icon fonts in xfce

You may have noticed, that desktop icon fonts that are by default in Linux Mint xfce/Xubuntu distros are awful. It’s just plain black, which means that putting any dark wallpaper will render your icon labels unreadable.
Seriously, guys! Desktop font should be light gray with a dark gray shadow, as it is in LM Mate, LM Gnome, Windows or any other OS. Usability designers have discovered this long ago, just copy this solution as many have done before you.
Fortunately, I googled up this xfce forum thread, where guy is adviced how to change the desktop fonts in xfce.
The only difference is that you have to edit the .gtkrc-xfce file, not .gtkrc-2.0, as the latter contains only include ".gtkrc-xfce" line.
So,you may copy-paste the code below to your ~/.gtkrc-xfce and relog with the current user so that changes are applied.
style "xfdesktop-icon-view" {
    XfdesktopIconView::label-alpha = 0
    XfdesktopIconView::shadow-x-offset = 1
    XfdesktopIconView::shadow-y-offset = 1
    XfdesktopIconView::shadow-color = "#101010"
    XfdesktopIconView::selected-shadow-x-offset = 1
    XfdesktopIconView::selected-shadow-y-offset = 1
    XfdesktopIconView::selected-shadow-color = "#101010"
 
    fg[NORMAL] = "#fefefe"
    fg[SELECTED] = "#fefefe"
    fg[ACTIVE] = "#fefefe"
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
If you want to change font as well, for example to ‘Verdana’, just add font_name="Verdana" line somewhere within the braces.
P.S. I think this is quite a good example of why the Linux desktop lags behind the Windows and OSX.

No comments:

Post a Comment