Go to main content

Oracle® Solaris 11.3 Desktop Administrator's Guide

Exit Print View

Updated: March 2018
 
 

Installing Icons for Themes

When you install a new icon for an application, 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:

  • Icons that are used within applications in the Oracle Solaris Desktop

  • Icons that are used internally by GTK+ applications or GTK+ stock icons

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 × 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:

  • Regular icon

  • High contrast icon

  • Inverse high contrast icon

If possible, you should also create 16 × 16 pixel versions of each of the listed icons for themes that do not require large print.

The Oracle Solaris 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.

For more information about how to create icons for application launchers and for panels, see https://www.freedesktop.org/wiki/Specifications/icon-theme-spec.

How to Install an Icon for a Theme

  1. Install the icons to the image files location that is specified for the theme in Installing a Controls Option or Installing a Window Border Option.

    For example, to add icons to the HighContrastLargePrint theme, add the icons to the /usr/share/themes/HighContrastLargePrint/pixmaps directory.

  2. 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.

  3. Modify the gtkrc file for the theme to associate the icon with a GTK + stock icon identifier.