Work in progress... | |
|
Forms - an OS feature | |
However, most theme designers know that it is possilbe to lightly style the forms elements, including turning on/off 3D bevel/ridge border effects, changing the background colour, adding a background or list image, changing the text and border colours and with browsers using the Gecko engine (used by Mozilla, Navigator, Firefox and others), rounding the corners. The Tiki themes are good examples of what is possible using standard CSS. The damian.css theme shows off the rounded corners feature of Gecko. What is less widely known is that by using the internal features of IE and Gecko, more radical changes are possible. Whether one uses the light styling of standard CSS or the heavier styling that is the subject of this recipe, designers should think about the accessibility implications of what they are doing. Arguably, the tikineat theme shouldn't change the borders, colors and fonts of the forms elements at all, seeing as it is the default theme for 1.9. More importantly, the button2 div class (used for the edit, lock, history, etc buttons on this page) should be
|
Heavy styling in Gecko | |
For the moment, this recipe will only deal with browsers that use Mozilla's (Gecko's) CSS engine at its heart. Gecko generates its widgets as a composite of simpler HTML (actually XUL) elements.
Here is the first problem: you need to know the element names for each part of the composite you want to change. Unfortionately, documantation for both the UI components used to build the applications (Firefox, Thunderbird, etc) and the toolbox widgets, are sparse. Google may help, but one is pretty much on their own. So let's take a look at the checkbox widget for Mozilla 1.6 classic theme: ./skin/classic/global/checkbox.css Copy to clipboard
(...to be continued...) |