Color Selection Dialog

Use the --color-selection option to create a color selection dialog.

The color selection dialog supports the following options:


Set the initial color.(ex: #FF0000)


Show the palette.

The following example script shows how to create a color selection dialog:


COLOR=`zenity --color-selection --show-palette`

case $? in
		echo "You selected $COLOR.";;
                echo "No color selected.";;
                echo "An unexpected error has occurred.";;

Color Selection Dialog Example

Zenity color selection dialog example