Color Entry Widget

From Inkscape Wiki
Revision as of 23:09, 11 December 2012 by Romain2Boss (talk | contribs) (Created page with "The entry accepts colors as defined by the [http://www.w3.org/TR/SVG/color.html SVG 1.1 Specifications]. Those colors are stored in the SVG file as specified by the user (i.e....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The entry accepts colors as defined by the SVG 1.1 Specifications. Those colors are stored in the SVG file as specified by the user (i.e. no more forced conversions to RRGGBBAA). However, for internal purposes, the colors can be stored and handled differently.

The color sets in the entry is (chronologically):

  1. First, the color as written in the SVG file (if any)
  2. Then, if modified by the user (pasted or typed), the user value
  3. Then, if modified by the software (in case of multiple input widgets), the software value

If the text in the entry cannot be converted to a valid color, the entry changes it's appearance (red border?).

If a color from the palette is dragged and dropped on the entry, it takes the color value.

To be defined

For the alpha value associated to the color, following options:

  1. We keep the default behaviour (the alpha is part of the entry)
  2. We goes to a more compliant SVG philosophy where alpha is not part of the entry anymore
  3. We have an half way where we extend the SVG specifications to allow Alpha (ie RRGGBB => RRGGBBAA) but, if not set, Inkscape append the previous alpha