Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Location of userChrome.css file in T'bird 91

  • 10 cavab
  • 1 has this problem
  • 25 views
  • Last reply by sfhowes

more options

In T'bird 78 I wrote a userChrome.css file that worked perfectly in determining the colour of the whole cell (not just a small bar at the right-hand edge) in the calendar according to the chosen colour of each category. The .css file was located in the C:\Users\....\AppData\Roaming\Thunderbird\Profiles\dof1rlq.default\Chrome folder. The code (if that's the right word) was:

@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="cfc"] { color: black !important; background-color: rgb(227,149,184) !important;} .calendar-event-box-container[categories="ldsm"] { color: black !important; background-color: rgb(255,255,102) !important;}

Now I have T'bird 91 installed and it doesn't work. Is this still the right code format, and is it still the right location for the .css file? I notice that since I got 91 I now have a new Profile: e7ir8xi2.default-release. I have copied the whole of the Chrome folder and the .css file into the new Profile but with no success. How can I get the effect I want in T'bird 91?

In T'bird 78 I wrote a userChrome.css file that worked perfectly in determining the colour of the whole cell (not just a small bar at the right-hand edge) in the calendar according to the chosen colour of each category. The .css file was located in the C:\Users\....\AppData\Roaming\Thunderbird\Profiles\dof1rlq.default\Chrome folder. The code (if that's the right word) was: @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="cfc"] { color: black !important; background-color: rgb(227,149,184) !important;} .calendar-event-box-container[categories="ldsm"] { color: black !important; background-color: rgb(255,255,102) !important;} Now I have T'bird 91 installed and it doesn't work. Is this still the right code format, and is it still the right location for the .css file? I notice that since I got 91 I now have a new Profile: e7ir8xi2.default-release. I have copied the whole of the Chrome folder and the .css file into the new Profile but with no success. How can I get the effect I want in T'bird 91?

All Replies (10)

more options

Did you toggle toolkit.legacyUserProfileCustomizations.stylesheets to true in the new profile?

more options

The css for some features requires changes for TB 91. See this topic for a similar issue.

more options

I'm beginning to feel that the problem may lie in the @namespace line. Could this be the wrong URL for v91? Is there any other subtle tweak that may make it suitable for v91?

more options

I don't think there's anything wrong with the namespace line, and it can probably be omitted. But if you read the other topic, a different namespace line is required there, as well as new code.

more options

Sorry to question your advice, but how can there be nothing wrong with the namespace line, and yet "a different namespace line is required"? And exactly which "other topic" do you mean?

more options

The other topic is cited above: https://support.mozilla.org/en-US/questions/1348775#answer-1438913

The namespace line that is needed there ends with xhtml. I've found the line ending with xul is not necessary.

more options

Thank you. Sorry I didn't find the 'topic' at first. I have altered the namespace line to the one in the topic you mention, i.e. @namespace html url("http://www.w3.org/1999/xhtml"); I'm afraid it has made no difference. I wonder if the bit in the middle of the namespace line http://www.w3.org/1999/ needs altering? I don't know what it actually means. Is it specific to a particular build of T'bird, or Windows, or something? Can you see anything else wrong with my code or its location as for 91? It worked perfectly well in 78.

Modified by jolyondodgson

more options

Thank you. Sorry I didn't find the 'topic' at first. I have altered the namespace line to the one in the topic you mention, i.e. @namespace html url("http://www.w3.org/1999/xhtml"); I'm afraid it has made no difference. I wonder if the bit in the middle of the namespace line http://www.w3.org/1999/ needs altering? I don't know what it actually means. Is it specific to a particular build of T'bird, or Windows, or something? Can you see anything else wrong with my code or its location as for 91? It worked perfectly well in 78.

more options

If you read the other topic, it points out that the css is quite different in the version that works for TB 91. It's not sufficient to just add another namespace line. In the case of the calendar categories, I don't know the correct code for TB 91, but you can try posting in the mozillazine forum and see if anyone provides a solution.