After a while, i finally succeeded in changing the all backgroug color of events according to the category, instead of a coloured line at the right side.
![Image](http://nsm05.casimages.com/img/2011/02/20//1102200706461168147684016.png)
Maybe some of you would be interested.
How to : (excuse my poor english)
1- At first, define the categories via the appropriate menu in Thunderbird.
Attention, categories names should not contain any accent (see further).
2- Create a directory named "chrome" under your Thunderbird profile (something like "xxyy9zz.default").
Note :sometimes this directory already exist, following previous changes made to TB appearance.
3- Create (or complete) a file named "userChrome.css" with a text editor . Attention, with my configuration (Linux Ubuntu), this name is case sensitive ! "Userchrome.css" is not fonctionnal in my configuration.
Save this empty file in the chrome directory previously created.
4- Then copy/paste the following code in the empty file :
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
.calendar-event-box-container[categories] {margin: 0px !important;background-position: top left !important;background-repeat: no-repeat !important;
}
calendar-category-box[categories]{
display: none !important;
}
/* Adapting background color following category */
.calendar-event-box-container[categories="xxx"] { color: black !important; background-color: #F08080 !important;}
.calendar-event-box-container[categories="yyyyyy"] { color: black !important; background-color: #e6e6fa !important;}
.calendar-event-box-container[categories="zzz_nnn"] { color: black !important; background-color: #FFCC66 !important;}
5- Modify code following your own categories/colors :
To do it, replace "xxxx", "yyy" and "zzz_nnn" with the name of your categories, as defined at the first step.
Following the number of categories you want, delete or add as many lines (from ".calendar .... to ... tant;}") you need by copy/paste .
Attention : category names should follow some rules :
- no accent (quite common in french ...)
- upper case letters become lower case letter in the code lines : for exple "Private" becomes "private", "PrivateMarc" becomes "privatemarc"
- spaces becomes "_" : exple "Private Marc" becomes "private_marc"
Then, modify colors following your choices :
- text color : black can be changed in white, etc ....
- background color : modify the color code #xxyyzz following your choices (make a google search with "code+color+rgb" to discover the different codes available).
6- Then save the file, reload Thunderbird and enjoy it !
Hope this could be helpfull,
patrick