Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8201590

Add standard colors in ColorPicker color palette

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • jfx11
    • javafx
    • None
    • behavioral
    • minimal
    • This change will have limited impact on applications, as this control is used manually most of the time. However, there is a minimal compatibility risk of breaking automated tests that rely on absolute position while picking color.
    • Other
    • Implementation

      Summary

      The JavaFX ColorPicker control currently does not provide basic standard colors to choose from. These colors are proposed to be added to ColorPicker control as part of implementing JDK-8177380.

      Problem

      Color palette of ColorPicker control does not support standard colors like Color.RED, Color.BLUE etc. Note : The color palette has variations of these colors, but standard version like Color.RED (255,0,0) is missing.

      Whilst users can always use 'Custom Colors' to define such colors, it is a common enough use case to justify adding them directly to the ColorPicker control.

      Solution

      Here is the list of standard colors that are proposed to be added as a separate row of colors in ColorPicker:

      1. Color.AQUA
      2. Color.TEAL
      3. Color.BLUE
      4. Color.NAVY
      5. Color.FUCHSIA
      6. Color.PURPLE
      7. Color.RED
      8. Color.MAROON
      9. Color.YELLOW
      10. Color.OLIVE
      11. Color.GREEN
      12. Color.LIME

      Why were these colors chosen?
      These 12 colors are non-grayscale basic standard colors. Please refer : https://en.wikipedia.org/wiki/Web_colors#HTML_color_names

      Specification

      This is a user interface change proposal to add the 12 standard colors to the ColorPicker palette as a new top row. No new API has been added.

            aghaisas Ajit Ghaisas
            aghaisas Ajit Ghaisas
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: