Find More DocumentationFeatured Support Resources | Download this book in PDF (602 KB)
Chapter 3 Installing ThemesThis chapter describes themes, the theme settings that are available in the GNOME Desktop, how to install options for theme settings, and how to create a custom option. Introduction to ThemesA theme is a group of coordinated settings that specifies the visual appearance of a part of the GNOME Desktop. Users can choose themes to change the appearance of the GNOME Desktop. A theme contains settings that affect different parts of the GNOME Desktop, as follows:
Theme Index FileEach theme has an index file which defines the characteristics of the theme. The name of the index file is /usr/share/themes/theme-name/index.theme. The following is a sample theme index file: [Desktop Entry] Type=X-GNOME-Metatheme Name=High Contrast Large Name[es]=Alto contraste grande Comment=Large black-on-white text and icons Comment[es]=Textos e iconos grandes en negro sobre blanco Encoding=UTF-8 [X-GNOME-Metatheme] GtkTheme=HighContrastLargePrint IconTheme=HighContrast MetacityTheme=Atlanta ApplicationFont=sans 18 The following table describes the keys in theme index files: Table 3–1 Keys in Theme Index Files
To Install a New Controls OptionYou can add a new option
for the controls setting in the
Typically, a new option for the controls setting is supplied as a .tar.gz file. To install the new controls option, unzip the .tar.gz file, then untar the .tar file into the /usr/share/themes directory. Users can install their own options for the controls setting. If a user installs an option for the controls setting, the option is stored in the $HOME/.themes directory. To Install a New Window Frame OptionYou can add a new option
for the window frame setting in the
Typically, a new option for the window frame setting is supplied as a .tar.gz file. To install the new window frame option, unzip the .tar.gz file, then untar the .tar file into the /usr/share/themes directory. Users can install their own options for the window frame setting. If a user installs an option for the window frame setting, the option is stored in the $HOME/.themes directory. To Install a New Icons OptionYou can add a new option for the icons
setting in the
Typically, a new option for the icons setting is supplied as a .tar.gz file. To install the new icons option, unzip the .tar.gz file, then untar the .tar file into the /usr/share/icons directory. Users can install their own options for the icons setting. If a user installs an option for the icons setting, the option is stored in the $HOME/.icons/option-name directory. Installing Icons for ThemesThe GNOME Desktop 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. Several versions of icons might be required so that the icon can be displayed properly 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 must create several versions of the following types of icon:
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 New Controls Option or To Install a New Window Frame Option. For example, to add icons to the HighContrastLargePrint theme, add the icons to the /usr/share/themes/HighContrastLargePrint/pixmaps directory. Add references to the icons to the relevant theme files. For example, to add icons to the HighContrastLargePrint theme, add references to the icons to the /usr/share/themes/HighContrastLargePrint/gtk-2.0/gtkrc file. Modify the gtkrc file for the theme to associate the icon with a GTK stock icon identifier. For more information on how to create icons for application launchers and for panels, see http://www.freedesktop.org/Standards/icon-theme-spec. To Create a Custom Controls OptionIf the options for the controls setting are not suitable for the needs of your users, you can create a custom controls option. To create a custom controls option, perform the following steps:
Users can now choose the new option for the controls setting. For more information on gtkrc files, see http://developer.gnome.org/doc/API/2.0/gtk/index.html. |
||||||||||||||||