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+ 界面

一个 GTK+ 主题其实是工具包(按钮,文本框等)的主题。大多数 GTK+ 的主题需要自己的主题引擎,请确保你已经安装了这些引擎到和GTK+工具包相同的 prefix 中了。 按照下面的步骤安装和使用主题:

  • 提取主题到 ~/.themes
    • 针对整个系统的主题安装到 ${sysprefix}/share/themes
  • 请确保主主题含有下面的文件: ~/.themes/<theme_name>/gtk-2.0/gtkrc
  • 在“用户界面设置”(Xfce 4.4.x)或者“外观设置”(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.