Another thing missing from CSS which is present in Metacity v2 themes is the ability to draw gradients. In Metacity v2, a gradient can be
- any one of vertical, horizontal or diagonal
- between two or more colours, which can be specified as any colour format Metacity supports
How should we best represent this in Cowbell themes?
Option A:
frame {
background-image: -cowbell-gradient (diagonal, green, blue);
}
Option B:
frame {
background-image: url(“wm:gradient,diagonal,green,blue”);
}
Option C:
frame {
background-image: -cowbell-gradient();
-cowbell-gradient-direction: diagonal;
-cowbell-gradient-color: green blue;
}
Option D:
frame {
background-color: -cowbell-gradient(diagonal, blue, green);
}
Or some combination of these. Or perhaps you can think of a better way.
I like A, it’s very similar to Mozilla’s CSS gradients: http://hacks.mozilla.org/2009/11/css-gradients-firefox-36/
The main difference being specifying “diagonal” rather than “top left”.
You mean like this CSS3 draft?
http://dev.w3.org/csswg/css3-images/#gradients-
Oh, goodness– I don’t know how I missed that. Good thing I asked here.