Occasionally we’ll be publishing polls on how best to represent ideas within CSS syntax. What we need here is something that’s
- easy to understand
- as much as possible, in the spirit of standard webpage CSS
- what someone who knows basic CSS would expect
Here’s our first question. In standard Metacity themes, you can include pixmaps. These pixmaps can then be recoloured: in other words, they are set to greyscale, and then the hue is modified to match the requested colour. This means that a pixmap theme can match the system colour scheme. Crux works like this.
How should we best express this in CSS? Here are two options, but feel free to present your own ideas. Our choice may be constrained by what libcroco is capable of, but we can also work around that in various ways.
background-image: -cowbell-recolor(url(“close.png”), green);
What do you think?