<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN">
<HTML
><HEAD
><TITLE
>Using GNOME Color Browser</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet"><LINK
REL="HOME"
TITLE="GNOME Color Browser"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="GNOME Color Browser"
HREF="index.html"><LINK
REL="NEXT"
TITLE="Menus and toolbar"
HREF="menus.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="index.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="menus.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="USAGE"
>Using GNOME Color Browser</A
></H1
><P
>      <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> is used for manipulating palettes, i.e. collections of
      screen colors. It allows you to browse the system palette (list
      of colors that come pre-defined with your system), define and
      edit your own palettes, select a color from any of these
      palettes to be used by an application, or find best matches for
      a given color in these palettes.
    </P
><P
>      <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> can also be used to define new colors; however, it only
      makes sense to do so if you plan on using this color many
      times. In this case, you can use <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> to define a new color
      and add it to your personal palette. If you only want to use a
      color once, it is easier to use the default GNOME Color
      Selector.
    </P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="MULTDOCS"
>Working with multiple documents</A
></H2
><P
>	The main <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> window may contain several sub-windows
	("documents"). There are 2 types of documents: <A
HREF="simple.html"
>palette documents</A
>, showing system or
	your personal palette, and <A
HREF="search.html"
>search
	documents</A
>, used for finding matching colors. For
	example, in the default configuration <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> starts with 4
	documents: two showing the system palette (one listing colors
	by name, the other using small color squares to represent
	them), and two search documents.  Having multiple documents
	can be very convenient if you want to work with several
	palettes at the same time, use drag and drop to move a color
	from one palette to another, etc.
      </P
><P
>	To switch between documents, click on the document tab at the
	bottom of the window.  If there are too many open documents so
	that the tabs do not fit the screen, you will see 2 arrows at
	the bottom left of <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> window; these arows allow you to
	scroll through the tabs.
      </P
><P
>	Every time you open a new palette (using
	<SPAN
CLASS="MENUCHOICE"
><B
CLASS="GUIMENU"
>File</B
><B
CLASS="GUIMENUITEM"
>Open</B
></SPAN
>), it is opened as
	a new document. To close a document, select
	<SPAN
CLASS="MENUCHOICE"
><B
CLASS="GUIMENU"
>File</B
><B
CLASS="GUIMENUITEM"
>Close</B
></SPAN
> (do not forget
	to save it first if you made any changes). Finally, you can
	also drag a document tab out of <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> window; this will
	create a new <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> window, showing this document.  
      </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="USINGFORAPPS"
>Using a color for an application</A
></H2
><P
>	Once you have found a color you like, there are two ways you
	can use this color in an application. The easiest way is to
	utilize drag and drop: all the color bars you see in the
	<TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> window can be drag-and-dropped onto any GNOME
	component which has configurable colors. For example, you can
	drag a color onto GNOME <SPAN
CLASS="INTERFACE"
>Panel</SPAN
> to change
	Panel's background color, or onto <TT
CLASS="APPLICATION"
>GNOME
	Terminal</TT
> to change its background.
      </P
><P
>	You can also use the color with many X Window applications
	which are not GNOME-compliant, for example with
	<TT
CLASS="APPLICATION"
>emacs</TT
> text editor. Most of X
	applications accept command line options <B
CLASS="COMMAND"
>-bg
	<TT
CLASS="REPLACEABLE"
><I
>COLOR</I
></TT
></B
> and <B
CLASS="COMMAND"
>-fg
	<TT
CLASS="REPLACEABLE"
><I
>COLOR</I
></TT
></B
> to specify the
	background and foreground
	color. <TT
CLASS="REPLACEABLE"
><I
>COLOR</I
></TT
> can be either a system
	color name, as shown by <TT
CLASS="APPLICATION"
>GNOME Color Browser</TT
> or its description by a
	triple of numbers, Red, Green, and Blue (RGB) values.  For
	example, the command
	<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>	  <B
CLASS="COMMAND"
>emacs -bg lightblue -fg darkgreen</B
>
	</PRE
></TD
></TR
></TABLE
>
	will start <TT
CLASS="APPLICATION"
>emacs</TT
> with light blue
	background and dark green foreground. Note that contrary to
	common UNIX conventions, color names are case-insensitive.  More
	information about colors in X Window System, RGB values, color
	depth, etc. is given in <A
HREF="xcolors.html"
>the section called <I
>Colors in X Window System</I
></A
>.
      </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="index.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="menus.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>GNOME Color Browser</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Menus and toolbar</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>