~ubuntu-branches/ubuntu/precise/zenity/precise-updates

« back to all changes in this revision

Viewing changes to help/el/color-selection.page

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-03-29 14:50:15 UTC
  • mfrom: (1.1.45)
  • Revision ID: package-import@ubuntu.com-20120329145015-p6jkb44cf19r2qyi
Tags: 3.4.0-0ubuntu1
* New upstream release:
  - Add support for lists and trees with --forms
  - Fix warning reading list from stdin
* debian/zenity-common.install:
  - Doesn't install omf files anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="color-selection" xml:lang="el">
 
3
  <info>
 
4
    <link type="guide" xref="index#dialogs"/>
 
5
    <desc>Use the <cmd>--color-selection</cmd> option.</desc>
 
6
  </info>
 
7
  <title>Color Selection Dialog</title>
 
8
  <p>
 
9
    Use the <cmd>--color-selection</cmd> option to create a color selection dialog. 
 
10
  </p>
 
11
  <p>
 
12
    The color selection dialog supports the following options:
 
13
  </p>
 
14
 
 
15
  <terms>
 
16
 
 
17
    <item>
 
18
      <title><cmd>--color</cmd>=<var>VALUE</var></title>
 
19
      <p>Set the initial color.(ex: #FF0000)</p>
 
20
    </item>
 
21
 
 
22
    <item>
 
23
      <title><cmd>--show-palette</cmd></title>
 
24
      <p>Show the palette.</p>
 
25
    </item>
 
26
 
 
27
  </terms>
 
28
 
 
29
  <p>
 
30
    The following example script shows how to create a color selection dialog:
 
31
  </p>
 
32
 
 
33
<code>
 
34
#!/bin/sh
 
35
 
 
36
COLOR=`zenity --color-selection --show-palette`
 
37
 
 
38
case $? in
 
39
         0)
 
40
                echo "You selected $COLOR.";;
 
41
         1)
 
42
                echo "No color selected.";;
 
43
        -1)
 
44
                echo "An unexpected error has occurred.";;
 
45
esac
 
46
</code>
 
47
 
 
48
  <figure id="zenity-colorselection-screenshot">
 
49
    <title>Color Selection Dialog Example</title>
 
50
    <desc><app>Zenity</app> color selection dialog example</desc>
 
51
    <media type="image" mime="image/png" src="figures/zenity-colorselection-screenshot.png"/>
 
52
  </figure>
 
53
 
 
54
</page>