<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN">
<HTML
><HEAD
><TITLE
>Working with palettes</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet"><LINK
REL="HOME"
TITLE="GNOME Color Browser"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Menus and toolbar"
HREF="menus.html"><LINK
REL="NEXT"
TITLE=" Search"
HREF="search.html"></HEAD
><BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>GNOME Color Browser</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="menus.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="search.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="SIMPLE"
>Working with palettes</A
></H1
><P
>      This section describes documents (i.e., sub-windows in <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
>
      window) showing some palette. A palette is just a list of
      colors, each one given a name. For example, X Window System
      comes with pre-defined system palette, containing hundreds of
      colors, from simple ones such as "red" or "blue" to exotic ones
      such as "LavenderBlush". You can also define your own palette,
      or several of them, as described below. Each palette is saved as
      a separate file; for example, the sytem palette is defined by
      the file <TT
CLASS="FILENAME"
>rgb.txt</TT
>, located in X11 library
      directory, usually <TT
CLASS="FILENAME"
>/usr/lib/X11R6/lib/X11</TT
>).
    </P
><P
> 
     <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> can show a palette in two ways:
    </P
><P
></P
><DL
><DT
><I
CLASS="EMPHASIS"
>By name:</I
></DT
><DD
><P
> 
	    In this mode, <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> lists all colors in a palette, showing a
	    small sample, Red, Green and Blue (RGB) values and name for each
	    color (see <A
HREF="xcolors.html"
>the section called <I
>Colors in X Window System</I
></A
> for detailed information
	    about RGB values). 
	  </P
><DIV
CLASS="FIGURE"
><P
><IMG
SRC="simple.png"></P
><P
><B
><A
NAME="BYNAMEFIG"
>Figure 1. System colors by name</A
></B
></P
></DIV
><P
>	    By default, the colors are listed in the same order in
	    which they appear in the file, which is indicated by a
	    small downward triangle next to the label
	    <TT
CLASS="GUILABEL"
><B
>Color</B
></TT
>.  As with all GNOME
	    applications, you can reverse the order by clicking on the
	    word <TT
CLASS="GUILABEL"
><B
>Color</B
></TT
> once. You can also have
	    the list ordered alphabetically by name by clicking on
	    <TT
CLASS="GUILABEL"
><B
>Name</B
></TT
> label.
	  </P
><P
> 
	    You can change the default width of 
	    <TT
CLASS="GUILABEL"
><B
>Value</B
></TT
> and <TT
CLASS="GUILABEL"
><B
>Name</B
></TT
> fields by
	    dragging the separator between these fields with the left mouse
	    button. 
	  </P
></DD
><DT
><I
CLASS="EMPHASIS"
>Palette view</I
></DT
><DD
><P
>	    In this mode, <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> just shows a small sample for each
	    color in the palette:
	  </P
><DIV
CLASS="FIGURE"
><P
><IMG
SRC="palette.png"></P
><P
><B
><A
NAME="PALETTEFIG"
>Figure 2. System colors in palette view</A
></B
></P
></DIV
></DD
></DL
><P
>      Regardless of the view you use, you can drag any of the color
      sample rectangles to GNOME Panel, GNOME Terminal, and many other
      GNOME applications windows to change their background colors.
    </P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="FAVORITES"
>Creating new palettes</A
></H2
><P
>	In addition to system colors which an ordinary user can not
	change, you can also create your own color lists. To do so,
	select <SPAN
CLASS="MENUCHOICE"
><B
CLASS="GUIMENU"
>File</B
><B
CLASS="GUIMENUITEM"
>Open</B
></SPAN
> and enter the
	name you want for your list (for example,
	<TT
CLASS="FILENAME"
>favorites.txt</TT
>). This will add to one more
	window to <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
>, with tab name corresponding to the name of
	the file. Originally this window is empty; you can add any
	colors to it by FIXME
      </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="EDITINGPALETTE"
>Editing and saving palettes</A
></H2
><P
>	Once you have created your own palettes, you can add and remove
	colors to them, change palettes' name etc. Note that unless
	you are logged in as system administrator (root), you can not
	change system palette. 
      </P
><P
>	To add a new color to a palette, right-click anywhere in the
	palette and select <B
CLASS="GUIMENUITEM"
>New color</B
> from
	the <B
CLASS="GUIMENU"
>pop-up</B
> menu, or select <B
CLASS="GUIMENUITEM"
>New
	color</B
> from the <B
CLASS="GUIMENU"
>Edit</B
> menu. 
       </P
><P
>	To remove a color from the palette, select this color by
	clicking on it and select <SPAN
CLASS="MENUCHOICE"
><B
CLASS="GUIMENU"
>Edit</B
><B
CLASS="GUIMENUITEM"
>Remove selected colors</B
></SPAN
>. An easier way of removing a color is to
	right-click on it and select <B
CLASS="GUIMENUITEM"
>Remove selected
	colors</B
> from the <B
CLASS="GUIMENU"
>pop-up</B
>
	menu. In the same way, you can select several colors and
	remove them all: to do so, click on the colors you want to
	select while pressing <B
CLASS="KEYCAP"
>CTRL</B
> key. You can also
	select a continuous block of colors by clicking on the first
	color, and then clicking on the last color of the block while
	pressing <B
CLASS="KEYCAP"
>SHIFT</B
> key.
      </P
><P
> 
        Finally, you can cahnge other proeperties of the document,
        such as the name and format  used by selecting
        <B
CLASS="GUIMENUITEM"
>Properties</B
> from
        <B
CLASS="GUIMENU"
>Edit</B
> or <B
CLASS="GUIMENU"
>pop-up</B
>
        menus. This will launch <SPAN
CLASS="INTERFACE"
>Properties</SPAN
> dialog,
        described in <A
HREF="properties.html"
>the section called <I
>Properties dialog</I
></A
>.  
      </P
><P
> 
	After modifying a palette, you can save your cahnges by
	selecting <SPAN
CLASS="MENUCHOICE"
><B
CLASS="GUIMENU"
>File</B
><B
CLASS="GUIMENUITEM"
>Save</B
></SPAN
>. You can also change modified palette under a
	new name by using <B
CLASS="GUIMENUITEM"
>Save as...</B
>
	command. 
      </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="EDITCOLOR"
>Editing a color</A
></H2
><P
>	To change a color in a palette, select it by clicking on it
	and select <SPAN
CLASS="MENUCHOICE"
><B
CLASS="GUIMENU"
>Edit</B
><B
CLASS="GUIMENUITEM"
>Edit selected color</B
></SPAN
>,
	or just right click on the color and select <B
CLASS="GUIMENUITEM"
>Edit
	selected color</B
> form the
	<B
CLASS="GUIMENU"
>pop-up</B
> menu.
      </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="menus.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="search.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Menus and toolbar</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Search</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>