InnerhalbNach weiteren Dokumenten suchenSupport-Ressourcen | Dieses Buch im PDF-Format herunterladen (576 KB)
Chapter 3 Installing ThemesThis chapter describes the types of theme that are available in the GNOME Desktop, how to install themes, and how to create a custom theme. Introduction to ThemesA theme is a group of coordinated settings that specifies the visual appearance of a part of the desktop environment. Users can choose themes to change the appearance of the desktop. The following types of theme affect different parts of the desktop environment:
To Install a Desktop ThemeDesktop themes reside in the /usr/share/themes directory. The typical structure of a desktop theme in the file system is as follows:
Typically, a new desktop theme is supplied as a .tar.gz file. To install the new desktop theme, unzip the .tar.gz file, then untar the .tar file into the /usr/share/themes directory. Users can install their own desktop themes. If a user installs a desktop theme, the theme is stored in the $HOME/.themes directory. To Install a Window Frame ThemeWindow frame themes reside in the /usr/share/themes/theme-name/metacity-1 directory. The typical structure of a window frame theme in the file system is as follows:
Typically, a new window frame theme is supplied as a .tar.gz file. To install the new window frame theme, unzip the .tar.gz file, then untar the .tar file into the /usr/share/themes directory. Users can install their own window frame themes. If a user installs a window frame theme, the theme is stored in the $HOME/.themes directory. Installing Icons for ThemesThe desktop environment provides several themes that are designed for users with special visual needs. For example, some of the themes are designed for users with low vision. The themes contain several versions of each icon so that the icon can be displayed in each theme. You might need to install a new icon for an application. When you install a new icon, you must create several versions of the icon, so that the icon displays correctly in the themes. You can create the icons in several formats, for example Portable Network Graphic (PNG) format. The suggested size of icons for the desktop environment is 48 pixels by 48 pixels. At this size, most themes can rescale the icons. When you install a new icon, create the following 48 × 48 pixel versions of the icon:
If possible, create 16 × 16 pixel versions of the each of the icons above also, for themes that do not require large print. Install the icons to the image files location that is specified for the theme in To Install a Desktop Theme or To Install a Window Frame Theme. For example, to add icons to the HighContrast theme, add the icons to the /usr/share/themes/HighContrast/pixmaps directory. Add references to the icons to the relevant theme files. For example, to add icons to the HighContrast theme, add references to the icons to the /usr/share/themes/HighContrast/gtk-2.0/gtkrc file. The instructions above apply only to the following types of icon:
For more information on how to create icons for application launchers and for panels, see http://www.freedesktop.org/standards/icon-theme-spec.html. To Create a Custom Desktop ThemeIf the desktop themes are not suitable for the needs of your users, you can create a custom desktop theme. To create a custom desktop theme, perform the following steps:
Users can now choose the new theme. For more information on gtkrc files, see http://developer.gnome.org/doc/API/2.0/gtk/index.html. |