Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62077

QColor does not recognize any variant of the olive color name, and more generally could be much more robust

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 5.6.0
    • GUI: Painting
    • None
    • mac osx 10.12.5 

    Description

      QColor doesn't recognize either "olive" or "Olive" as a valid color name.  this is one of the most basic colors, part of the original HTML 16 colors, defined as 808000 - a basic nodal point in color space (basically a version of dark yellow, but much more familiar as olive).

      Users of our app enter color names for lines in a graph, and this is a good color to have available.

      Also, it would be great if QColor could recognize "Blue" in addition to "blue", again because users are entering these names, and being more robust would be better.  Likewise, some colors require CamelCase such as ForestGreen - would be great to allow forestgreen as well.  Case really shouldn't matter.

      The docs point to this page: https://www.w3.org/TR/SVG/types.html#ColorKeywords but the colors there are all lowercase..

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            rcoreilly Randall O'Reilly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes