Xfce Wiki

Sub domains
 

This is an old revision of the document!


如何安装新的主题

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

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

窗口装饰

  • 提取主题到 ~/.themes 中的
    • 针对整个系统的主题安装到 ${sysprefix}/share/themes
  • 请确保目录结构像这样:~/.themes/<theme_name>/xfwm4/
  • 如果主题含有可伸缩的图像(~/.themes/<theme_name>/xfwm4/*.svg),最好安装 librsvg 软件包
  • 在“窗口管理器设置”中选择主题

你可以在这里找到更多的关于如何创建窗口管理器主题的内容。

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.