Attachment "revisions-to-75101.patch" to
ticket [75101bf5ce]
added by
anonymous
2013-06-24 15:53:28.
Index: color.tcl
==================================================================
--- color.tcl
+++ color.tcl
@@ -3,10 +3,11 @@
Widget::declare SelectColor {
{-title String "Select a color" 0}
{-parent String "" 0}
{-variable String "" 1}
+ {-help Boolean 0 1}
{-color TkResource "" 0 {label -background}}
{-type Enum "dialog" 1 {dialog popup}}
{-placement String "center" 1}
{-background TkResource "" 0 {label -background}}
}
@@ -39,10 +40,11 @@
variable _oldColor
variable _entryColor
variable _bgColor
variable _fgColor
variable _rounds
+ variable _help
}
proc SelectColor::create { path args } {
Widget::init SelectColor $path $args
@@ -209,10 +211,11 @@
variable _oldColor
variable _entryColor
variable _bgColor
variable _fgColor
variable _rounds
+ variable _help
Widget::init SelectColor $path:SelectColor $args
set top [Dialog::create $path \
-title [Widget::cget $path:SelectColor -title] \
-parent [Widget::cget $path:SelectColor -parent] \
@@ -222,10 +225,13 @@
set fg [frame $dlgf.fg]
set desc [list \
base _baseColors "Base colors" \
user _userColors "User colors"]
+ # Initialize _help
+ set _help [Widget::cget $path:SelectColor -help]
+
# Initialize _varName
# The initial value of [$w cget -variable] is ignored and is
# overwritten with [$w cget -color].
set _varName [Widget::cget $path:SelectColor -variable]
if {[string range $_varName 0 1] ne {::}} {
@@ -279,11 +285,12 @@
# Record these colors for use later
set _fgColor [$fg.round0 cget -highlightcolor]
# Add a TitleFrame $titf to wrap $fg.round and $fg.value
- set titf [TitleFrame $fg.choice -text {Your Selection}]
+ set name [lindex [BWidget::getname yourSelection] 0]
+ set titf [TitleFrame $fg.choice -text $name]
set subf [$titf getframe]
pack $titf -anchor w -pady 2 -expand yes -fill both
# Add an entry widget $fg.value for the #RRGGBB value
if {$::tk_version > 8.4} {
@@ -322,11 +329,12 @@
pack $fcolor -in $fround -fill y -expand yes
pack $fround -in $subf -side right -anchor e -pady 2 -fill y -expand yes
# Add a TitleFrame $dlgf.fd to wrap the canvas selectors. The
# labels are referenced by the DynamicHelp tooltip.
- set fd0 [TitleFrame $dlgf.fd -text {Color Selectors}]
+ set name [lindex [BWidget::getname colorSelectors] 0]
+ set fd0 [TitleFrame $dlgf.fd -text $name]
set fd [$fd0 getframe]
set f1 [frame $fd.f1 -relief sunken -borderwidth 2]
set f2 [frame $fd.f2 -relief sunken -borderwidth 2]
set c1 [canvas $f1.c -width 200 -height 200 -bd 0 -highlightthickness 0]
set c2 [canvas $f2.c -width 15 -height 200 -bd 0 -highlightthickness 0]
@@ -403,56 +411,32 @@
# (2) ::SelectColor::_entryColor is modified (except by the user typing in
# the entry widget)
trace add variable $_varName write ::SelectColor::_SetEntryValue
- # Change case on button text
- $top add -text OK
- $top add -text Cancel
-
- # Add labels to offer DynamicHelp
- set blurb {Hover for help with color selection by:}
- frame $top.help
- label $top.help.0 -text $blurb -relief flat -bd 2
- label $top.help.1 -text { Mouse } -relief groove -bd 2
- label $top.help.2 -text { Keyboard } -relief groove -bd 2
- pack $top.help.0 $top.help.1 $top.help.2 \
- -anchor center -pady 4 -side left -padx 5
- DynamicHelp::add $top.help.1 -text [string map {{ } {}} \
- {Click or drag the mouse in the Color Selectors to choose a color.
- If the selected color remains black, regardless of what you
- do in the left-hand Color Selector (for hue and saturation), check
- the position of the pointer in the right-hand Color Selector
- (for brightness).
-
- Click one of the "Base colors" to read a value from this palette.
-
- Click one of the "User colors" to read a value from this palette,
- or to write to the palette if the color is blank. If you then
- use the Color Selectors to change the color, your choice will be
- written to this (User) palette color until you select another
- (Base or User) palette color.}]
- DynamicHelp::add $top.help.2 -text [string map {{ } {}} \
- {Click in the text entry window in the left of the "Your
- Selection" area.
-
- Type the color that you want in hexadecimal RGB format.
- Whenever the number of hexadecimal digits is a multiple
- of 3, the color value is valid and will be copied to the
- other parts of the Color Selector.
-
- Leave the text entry window by clicking anywhere else,
- or by pressing the "Escape" or "Return" key. The text
- entry window will then display the color in 24-bit RGB
- format, although internally the Color Selector uses
- 48-bit colors.
-
- When the text entry widget does not have keyboard focus
- (i.e. does not show a cursor), the "Return" and "Escape"
- keys do the same as the "OK" and "Cancel" buttons,
- respectively.}]
- after idle [list pack $top.help]
+ $top add -text [lindex [BWidget::getname ok] 0]
+ $top add -text [lindex [BWidget::getname cancel] 0]
+
+ if {$_help} {
+ # Add labels to offer DynamicHelp
+ set helpWords [lindex [BWidget::getname hoverHelp] 0]
+ set mouseWord " [lindex [BWidget::getname mouseHelp] 0] "
+ set keyboardWord " [lindex [BWidget::getname keyboardHelp] 0] "
+ set mouseHelpText [lindex [BWidget::getname mouseHelpText] 0]
+ set keyboardHelpText [lindex [BWidget::getname keyboardHelpText] 0]
+ set mouseHelpText [subst -nocommands -novariables $mouseHelpText]
+ set keyboardHelpText [subst -nocommands -novariables $keyboardHelpText]
+ frame $top.help
+ label $top.help.0 -text $helpWords -relief flat -bd 2
+ label $top.help.1 -text $mouseWord -relief groove -bd 2
+ label $top.help.2 -text $keyboardWord -relief groove -bd 2
+ pack $top.help.0 $top.help.1 $top.help.2 \
+ -anchor center -pady 4 -side left -padx 5
+ DynamicHelp::add $top.help.1 -text $mouseHelpText
+ DynamicHelp::add $top.help.2 -text $keyboardHelpText
+ after idle [list pack $top.help]
+ }
# Override background color
ReColor $path $_bgColor
set res [$top draw]
@@ -722,36 +706,45 @@
# ------------------------------------------------------------------------------
proc SelectColor::ReColor {path newColor} {
variable _bgColor
variable _rounds
+ variable _help
set _bgColor $newColor
$path:cmd configure -bg $_bgColor
foreach child {
- .sep .help .frame .bbox
- .help.0 .help.1 .help.2
+ .sep .frame .bbox
.frame.fd .frame.fd.f.f1 .frame.fd.f.f2
.frame.fg .frame.fg.base .frame.fg.choice
.frame.fg.user .frame.fg.round .frame.fg.vround
} {
$path$child configure -bg $_bgColor
}
+
+ if {$_help} {
+ foreach child {
+ .help .help.0 .help.1 .help.2
+ } {
+ $path$child configure -bg $_bgColor
+ }
+ }
# Special treatment for Aqua native buttons.
# FIXME implement a general fix for BWidget Button/ButtonBox/Dialog
if {[tk windowingsystem] eq "aqua"} {
- foreach child {
- .bbox.b0
- .bbox.b1
- } {
- $path$child configure \
- -highlightbackground $_bgColor \
- -highlightthickness 0
- }
+ $path.bbox.b0 configure -highlightbackground $_bgColor \
+ -highlightthickness 0
+ $path.bbox.b1 configure -highlightbackground $_bgColor \
+ -highlightthickness 0
+ } else {
+ $path.bbox.b0 configure -bg $_bgColor -activebackground $_bgColor \
+ -highlightbackground $_bgColor
+ $path.bbox.b1 configure -bg $_bgColor -activebackground $_bgColor \
+ -highlightbackground $_bgColor
}
foreach fround $_rounds {
$fround configure -highlightbackground $_bgColor -bg $_bgColor
}
Index: lang/da.rc
==================================================================
--- lang/da.rc
+++ lang/da.rc
@@ -54,5 +54,18 @@
! --- symbolic names of label of SelectColor dialog ----------------------------
*baseColorsName: Base colors
*userColorsName: User colors
+
+*yourSelectionName: Your Selection
+*colorSelectorsName: Color Selectors
+*hoverHelpName: Hover for help with color selection by:
+*mouseHelpName: Mouse
+*keyboardHelpName: Keyboard
+
+! --- dynamic help text for SelectColor dialog. Lines 75 chars max, split by '\n'.
+
+*mouseHelpTextName: Click or drag the mouse in the Color Selectors to choose a color.\nIf the selected color remains black, regardless of what you\ndo in the left-hand Color Selector (for hue and saturation), check\nthe position of the pointer in the right-hand Color Selector\n(for brightness).\n\nClick one of the "Base colors" to read a value from this palette.\n\nClick one of the "User colors" to read a value from this palette,\nor to write to the palette if the color is blank. If you then\nuse the Color Selectors to change the color, your choice will be\nwritten to this (User) palette color until you select another\n(Base or User) palette color.
+
+*keyboardHelpTextName: Click in the text entry window in the left of the "Your\nSelection" area.\n\nType the color that you want in hexadecimal RGB format.\nWhenever the number of hexadecimal digits is a multiple\nof 3, the color value is valid and will be copied to the\nother parts of the Color Selector.\n\nLeave the text entry window by clicking anywhere else,\nor by pressing the "Escape" or "Return" key. The text\nentry window will then display the color in 24-bit RGB\nformat, although internally the Color Selector uses\n48-bit colors.\n\nWhen the text entry widget does not have keyboard focus\n(i.e. does not show a cursor), the "Return" and "Escape"\nkeys do the same as the "OK" and "Cancel" buttons,\nrespectively.
+
Index: lang/de.rc
==================================================================
--- lang/de.rc
+++ lang/de.rc
@@ -54,5 +54,18 @@
! --- symbolic names of label of SelectColor dialog ----------------------------
*baseColorsName: Grundfarben
*userColorsName: Benutzerdefinierte Farben
+
+*yourSelectionName: Ihre Auswahl
+*colorSelectorsName: Farbauswahl Geräte
+*hoverHelpName: Herumdrücken für die Hilfe bei Farbauswahl per:
+*mouseHelpName: Maus
+*keyboardHelpName: Tastatur
+
+! --- dynamic help text for SelectColor dialog. Lines 75 chars max, split by '\n'.
+
+*mouseHelpTextName: Klicken oder ziehen Sie die Maus in den Farbauswahlger\u00e4te, um eine Farbe\nzu w\u00e4hlen. Wenn die ausgew\u00e4hlte Farbe schwarz bleibt, unabh\u00e4ngig davon,\nwas Sie in der linken Farbauswahl (f\u00fcr Farbton und S\u00e4ttigung) tun,\n\u00fcberpr\u00fcfen die Position des Zeigers in der rechten Farbauswahl (f\u00fcr\nHelligkeit).\n\nKlicken Sie auf eine der "Grundfarben", um einen Wert aus dieser Palette\nzu lesen.\n\nKlicken Sie auf eine der "Benutzerdefinierte Farben", um einen Wert aus\ndieser Palette zu lesen, oder auf der Palette zu schreiben, wenn die Farbe\nleer ist. Wenn Sie dann die Farbauswahlger\u00e4te verwenden, um die Farbe zu\n\u00e4ndern, wird Ihre Wahl auf dieser (Benutzer) Palettenfarbe geschrieben\nsein, bis Sie ein anderes (Grund oder Benutzer) Palettenfarbe ausw\u00e4hlen.
+
+*keyboardHelpTextName: Klicken Sie in dem Texteingabefenster in dem linken Teil der Bereich\n"Ihre Auswahl".\n\nGeben Sie die gew\u00fcnschte Farbe in hexadezimaler RGB-Format. Wenn die\nAnzahl der Hexadezimalzahlen ein Vielfaches von 3 ist, ist der Farbwert\nG\u00fcltigkeit und wird er auf anderen Teilen der Farbauswahl kopiert werden.\n\nVerlassen Sie die Texteingabe durch Klicken anderswo, oder durch Dr\u00fccken\nder "Escape" oder "Return"-Taste. Dann zeigt das Texteingabefenster die\nFarbe in 24-Bit-RGB Format, obwohl intern die Farbauswahl verwendet\n48-Bit-Farben.\n\nWenn das Texteingabefenster nicht Tastaturfokus hat (dh. keinen Cursor\nzeigt), machen die Eingabetaste und Escapetaste das gleiche wie die Kn\u00f6pfe\n"OK" bzw. "Abbrechen".
+
Index: lang/en.rc
==================================================================
--- lang/en.rc
+++ lang/en.rc
@@ -54,5 +54,19 @@
! --- symbolic names of label of SelectColor dialog ----------------------------
*baseColorsName: Base colors
*userColorsName: User colors
+
+
+*yourSelectionName: Your Selection
+*colorSelectorsName: Color Selectors
+*hoverHelpName: Hover for help with color selection by:
+*mouseHelpName: Mouse
+*keyboardHelpName: Keyboard
+
+! --- dynamic help text for SelectColor dialog. Lines 75 chars max, split by '\n'.
+
+*mouseHelpTextName: Click or drag the mouse in the Color Selectors to choose a color.\nIf the selected color remains black, regardless of what you\ndo in the left-hand Color Selector (for hue and saturation), check\nthe position of the pointer in the right-hand Color Selector\n(for brightness).\n\nClick one of the "Base colors" to read a value from this palette.\n\nClick one of the "User colors" to read a value from this palette,\nor to write to the palette if the color is blank. If you then\nuse the Color Selectors to change the color, your choice will be\nwritten to this (User) palette color until you select another\n(Base or User) palette color.
+
+*keyboardHelpTextName: Click in the text entry window in the left of the "Your\nSelection" area.\n\nType the color that you want in hexadecimal RGB format.\nWhenever the number of hexadecimal digits is a multiple\nof 3, the color value is valid and will be copied to the\nother parts of the Color Selector.\n\nLeave the text entry window by clicking anywhere else,\nor by pressing the "Escape" or "Return" key. The text\nentry window will then display the color in 24-bit RGB\nformat, although internally the Color Selector uses\n48-bit colors.\n\nWhen the text entry widget does not have keyboard focus\n(i.e. does not show a cursor), the "Return" and "Escape"\nkeys do the same as the "OK" and "Cancel" buttons,\nrespectively.
+
Index: lang/es.rc
==================================================================
--- lang/es.rc
+++ lang/es.rc
@@ -54,5 +54,18 @@
! --- symbolic names of label of SelectColor dialog ----------------------------
*baseColorsName: Base colors
*userColorsName: User colors
+
+*yourSelectionName: Your Selection
+*colorSelectorsName: Color Selectors
+*hoverHelpName: Hover for help with color selection by:
+*mouseHelpName: Mouse
+*keyboardHelpName: Keyboard
+
+! --- dynamic help text for SelectColor dialog. Lines 75 chars max, split by '\n'.
+
+*mouseHelpTextName: Click or drag the mouse in the Color Selectors to choose a color.\nIf the selected color remains black, regardless of what you\ndo in the left-hand Color Selector (for hue and saturation), check\nthe position of the pointer in the right-hand Color Selector\n(for brightness).\n\nClick one of the "Base colors" to read a value from this palette.\n\nClick one of the "User colors" to read a value from this palette,\nor to write to the palette if the color is blank. If you then\nuse the Color Selectors to change the color, your choice will be\nwritten to this (User) palette color until you select another\n(Base or User) palette color.
+
+*keyboardHelpTextName: Click in the text entry window in the left of the "Your\nSelection" area.\n\nType the color that you want in hexadecimal RGB format.\nWhenever the number of hexadecimal digits is a multiple\nof 3, the color value is valid and will be copied to the\nother parts of the Color Selector.\n\nLeave the text entry window by clicking anywhere else,\nor by pressing the "Escape" or "Return" key. The text\nentry window will then display the color in 24-bit RGB\nformat, although internally the Color Selector uses\n48-bit colors.\n\nWhen the text entry widget does not have keyboard focus\n(i.e. does not show a cursor), the "Return" and "Escape"\nkeys do the same as the "OK" and "Cancel" buttons,\nrespectively.
+
Index: lang/fr.rc
==================================================================
--- lang/fr.rc
+++ lang/fr.rc
@@ -54,5 +54,18 @@
! --- symbolic names of label of SelectColor dialog ----------------------------
*baseColorsName: Base colors
*userColorsName: User colors
+
+*yourSelectionName: Your Selection
+*colorSelectorsName: Color Selectors
+*hoverHelpName: Hover for help with color selection by:
+*mouseHelpName: Mouse
+*keyboardHelpName: Keyboard
+
+! --- dynamic help text for SelectColor dialog. Lines 75 chars max, split by '\n'.
+
+*mouseHelpTextName: Click or drag the mouse in the Color Selectors to choose a color.\nIf the selected color remains black, regardless of what you\ndo in the left-hand Color Selector (for hue and saturation), check\nthe position of the pointer in the right-hand Color Selector\n(for brightness).\n\nClick one of the "Base colors" to read a value from this palette.\n\nClick one of the "User colors" to read a value from this palette,\nor to write to the palette if the color is blank. If you then\nuse the Color Selectors to change the color, your choice will be\nwritten to this (User) palette color until you select another\n(Base or User) palette color.
+
+*keyboardHelpTextName: Click in the text entry window in the left of the "Your\nSelection" area.\n\nType the color that you want in hexadecimal RGB format.\nWhenever the number of hexadecimal digits is a multiple\nof 3, the color value is valid and will be copied to the\nother parts of the Color Selector.\n\nLeave the text entry window by clicking anywhere else,\nor by pressing the "Escape" or "Return" key. The text\nentry window will then display the color in 24-bit RGB\nformat, although internally the Color Selector uses\n48-bit colors.\n\nWhen the text entry widget does not have keyboard focus\n(i.e. does not show a cursor), the "Return" and "Escape"\nkeys do the same as the "OK" and "Cancel" buttons,\nrespectively.
+
Index: lang/hu.rc
==================================================================
--- lang/hu.rc
+++ lang/hu.rc
@@ -55,5 +55,18 @@
! --- symbolic names of label of SelectColor dialog ----------------------------
*baseColorsName: Alapszínek
*userColorsName: Felhasználói színek
+
+*yourSelectionName: Your Selection
+*colorSelectorsName: Color Selectors
+*hoverHelpName: Hover for help with color selection by:
+*mouseHelpName: Mouse
+*keyboardHelpName: Keyboard
+
+! --- dynamic help text for SelectColor dialog. Lines 75 chars max, split by '\n'.
+
+*mouseHelpTextName: Click or drag the mouse in the Color Selectors to choose a color.\nIf the selected color remains black, regardless of what you\ndo in the left-hand Color Selector (for hue and saturation), check\nthe position of the pointer in the right-hand Color Selector\n(for brightness).\n\nClick one of the "Base colors" to read a value from this palette.\n\nClick one of the "User colors" to read a value from this palette,\nor to write to the palette if the color is blank. If you then\nuse the Color Selectors to change the color, your choice will be\nwritten to this (User) palette color until you select another\n(Base or User) palette color.
+
+*keyboardHelpTextName: Click in the text entry window in the left of the "Your\nSelection" area.\n\nType the color that you want in hexadecimal RGB format.\nWhenever the number of hexadecimal digits is a multiple\nof 3, the color value is valid and will be copied to the\nother parts of the Color Selector.\n\nLeave the text entry window by clicking anywhere else,\nor by pressing the "Escape" or "Return" key. The text\nentry window will then display the color in 24-bit RGB\nformat, although internally the Color Selector uses\n48-bit colors.\n\nWhen the text entry widget does not have keyboard focus\n(i.e. does not show a cursor), the "Return" and "Escape"\nkeys do the same as the "OK" and "Cancel" buttons,\nrespectively.
+
Index: lang/nl.rc
==================================================================
--- lang/nl.rc
+++ lang/nl.rc
@@ -54,5 +54,18 @@
! --- symbolic names of label of SelectColor dialog ----------------------------
*baseColorsName: Base colors
*userColorsName: User colors
+
+*yourSelectionName: Your Selection
+*colorSelectorsName: Color Selectors
+*hoverHelpName: Hover for help with color selection by:
+*mouseHelpName: Mouse
+*keyboardHelpName: Keyboard
+
+! --- dynamic help text for SelectColor dialog. Lines 75 chars max, split by '\n'.
+
+*mouseHelpTextName: Click or drag the mouse in the Color Selectors to choose a color.\nIf the selected color remains black, regardless of what you\ndo in the left-hand Color Selector (for hue and saturation), check\nthe position of the pointer in the right-hand Color Selector\n(for brightness).\n\nClick one of the "Base colors" to read a value from this palette.\n\nClick one of the "User colors" to read a value from this palette,\nor to write to the palette if the color is blank. If you then\nuse the Color Selectors to change the color, your choice will be\nwritten to this (User) palette color until you select another\n(Base or User) palette color.
+
+*keyboardHelpTextName: Click in the text entry window in the left of the "Your\nSelection" area.\n\nType the color that you want in hexadecimal RGB format.\nWhenever the number of hexadecimal digits is a multiple\nof 3, the color value is valid and will be copied to the\nother parts of the Color Selector.\n\nLeave the text entry window by clicking anywhere else,\nor by pressing the "Escape" or "Return" key. The text\nentry window will then display the color in 24-bit RGB\nformat, although internally the Color Selector uses\n48-bit colors.\n\nWhen the text entry widget does not have keyboard focus\n(i.e. does not show a cursor), the "Return" and "Escape"\nkeys do the same as the "OK" and "Cancel" buttons,\nrespectively.
+
Index: lang/no.rc
==================================================================
--- lang/no.rc
+++ lang/no.rc
@@ -54,5 +54,18 @@
! --- symbolic names of label of SelectColor dialog ----------------------------
*baseColorsName: Base colors
*userColorsName: User colors
+
+*yourSelectionName: Your Selection
+*colorSelectorsName: Color Selectors
+*hoverHelpName: Hover for help with color selection by:
+*mouseHelpName: Mouse
+*keyboardHelpName: Keyboard
+
+! --- dynamic help text for SelectColor dialog. Lines 75 chars max, split by '\n'.
+
+*mouseHelpTextName: Click or drag the mouse in the Color Selectors to choose a color.\nIf the selected color remains black, regardless of what you\ndo in the left-hand Color Selector (for hue and saturation), check\nthe position of the pointer in the right-hand Color Selector\n(for brightness).\n\nClick one of the "Base colors" to read a value from this palette.\n\nClick one of the "User colors" to read a value from this palette,\nor to write to the palette if the color is blank. If you then\nuse the Color Selectors to change the color, your choice will be\nwritten to this (User) palette color until you select another\n(Base or User) palette color.
+
+*keyboardHelpTextName: Click in the text entry window in the left of the "Your\nSelection" area.\n\nType the color that you want in hexadecimal RGB format.\nWhenever the number of hexadecimal digits is a multiple\nof 3, the color value is valid and will be copied to the\nother parts of the Color Selector.\n\nLeave the text entry window by clicking anywhere else,\nor by pressing the "Escape" or "Return" key. The text\nentry window will then display the color in 24-bit RGB\nformat, although internally the Color Selector uses\n48-bit colors.\n\nWhen the text entry widget does not have keyboard focus\n(i.e. does not show a cursor), the "Return" and "Escape"\nkeys do the same as the "OK" and "Cancel" buttons,\nrespectively.
+
Index: lang/pl.rc
==================================================================
--- lang/pl.rc
+++ lang/pl.rc
@@ -56,5 +56,18 @@
! --- symbolic names of label of SelectColor dialog ----------------------------
*baseColorsName: Kolory podstawowe
*userColorsName: Kolory niestandardowe
+
+*yourSelectionName: Your Selection
+*colorSelectorsName: Color Selectors
+*hoverHelpName: Hover for help with color selection by:
+*mouseHelpName: Mouse
+*keyboardHelpName: Keyboard
+
+! --- dynamic help text for SelectColor dialog. Lines 75 chars max, split by '\n'.
+
+*mouseHelpTextName: Click or drag the mouse in the Color Selectors to choose a color.\nIf the selected color remains black, regardless of what you\ndo in the left-hand Color Selector (for hue and saturation), check\nthe position of the pointer in the right-hand Color Selector\n(for brightness).\n\nClick one of the "Base colors" to read a value from this palette.\n\nClick one of the "User colors" to read a value from this palette,\nor to write to the palette if the color is blank. If you then\nuse the Color Selectors to change the color, your choice will be\nwritten to this (User) palette color until you select another\n(Base or User) palette color.
+
+*keyboardHelpTextName: Click in the text entry window in the left of the "Your\nSelection" area.\n\nType the color that you want in hexadecimal RGB format.\nWhenever the number of hexadecimal digits is a multiple\nof 3, the color value is valid and will be copied to the\nother parts of the Color Selector.\n\nLeave the text entry window by clicking anywhere else,\nor by pressing the "Escape" or "Return" key. The text\nentry window will then display the color in 24-bit RGB\nformat, although internally the Color Selector uses\n48-bit colors.\n\nWhen the text entry widget does not have keyboard focus\n(i.e. does not show a cursor), the "Return" and "Escape"\nkeys do the same as the "OK" and "Cancel" buttons,\nrespectively.
+