Re: GTK built-in color names (eg: "green", "purple")


On 2 February 2015 at 18:04, John W <jwdevel gmail com> wrote:
Is there a way to re-define the RGB values of built-in color names in GTK?


So back to the point: is there any way to change GTK's mapping for color names?
Or perhaps have GTK use X11 color names?

GTK+ parses CSS-like color strings like 'rgb()' and 'rgba()' by
itself, but named colors and hexadecimal strings are parsed with

which uses the CSS spec:

which, in turn, is based on some random version of the X11 rgb.txt file.

inside Pango, the name → color mapping is defined here:

so if you want GTK+ to use X11 color names (which are fewer and are
completely unspecified and generally should not be used anywhere
because this is not 1987 any more) you will need to modify the table
inside Pango.


[ ] ebassi [ gmail com]

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]