Xfce Wiki

Sub domains
 

This is an old revision of the document!


如何安装新的主题

您可以调整 Xfce 5种不同的主题:窗口装饰,GTK+ 界面,光标,通知和图标。你可以在各种网站上找到主题,这也有一些:

质量和分辨率不错的墙纸网站:

Window decorations

  • Extract the theme in ~/.themes
    • System wide installation in ${sysprefix}/share/themes
  • Make sure the directory layout looks like this: ~/.themes/<theme_name>/xfwm4/
  • If the theme contains scalable images (~/.themes/<theme_name>/xfwm4/*.svg) it's better to install the librsvg package
  • Select the theme in the Window Manager Settings

You can find more information about how to create a window manager theme here.

GTK+ interfaces

A GTK+ theme is the theme of the toolkit (buttons, textfields, etc). Most of the GTK+ themes need their own theme engine, make sure you have that theme engine installed with the same prefix as the GTK+ toolkit. To install and use a theme, follow these steps:

  • Extract the theme in ~/.themes
    • System wide installation in ${sysprefix}/share/themes
  • Make sure the theme contains the following file: ~/.themes/<theme_name>/gtk-2.0/gtkrc
  • Select the theme in the User Interface Settings (Xfce 4.4.x) or in the Appearance Settings (Xfce 4.6.x)

Cursors (4.4 and 4.6)

  • Extract the theme in ~/.icons
    • System wide installation in ${sysprefix}/share/icons
  • Make sure the directory layout looks like this: ./icons/<theme_name>/cursors
  • Select the theme in the Mouse Settings. If there is no tab with cursor themes, make sure xfce-mcs-plugins (Xfce 4.4.x) is compiled with Xcursor support

Icons

  • Extract the theme in ~/.icons
    • System wide installation in ${sysprefix}/share/icons
  • Optional: run gtk-update-icon-cache -f -t ~/.icons/<theme_name> to create an icon cache 1)
  • If the theme contains scalable icons (~/.icons/<theme_name>/scalable) make sure you have librsvg installed
  • Select the theme in the User Interface Settings (2nd tab, Xfce 4.4.x) or in the Appearance Settings (2nd tab, Xfce 4.6.x)

When you have icon theme problems, it's also recommended to install the hicolor-icon-theme package.