Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-985

Dark Gray and Light Gray standard colors are not supported

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.1, 2.0.5
    • Component/s: wtk
    • Labels:
      None
    • Environment:
      All

      Description

      Looking at GraphicsUtilities.decodeColor(String) it says that any of the standard Java Color values is supported. But, trying to use "darkgray" or "lightgray" doesn't work.
      The underlying reason is that the lookup is done using the lowercase value of the input string and trying to find the corresponding field name in the Color class. But these two static fields are named "darkGray" and "lightGray" (mixed case) and so the lookup doesn't work.
      Need to special case these two values. Wouldn't hurt to support the British spellings ("darkgrey" and "lightgrey") either.

        Attachments

        1. 985.diffs
          2 kB
          Roger Whitcomb

          Issue Links

            Activity

              People

              • Assignee:
                rwhitcomb Roger Whitcomb
                Reporter:
                rwhitcomb Roger Whitcomb
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: