Closed Bug 372049 Opened 19 years ago Closed 19 years ago

File userChrome.css can,t be found as indicated in the enclosed below

Categories

(Calendar :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: robhall, Unassigned)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 9.10 Build Identifier: rv:1.9a1) Gecko/20070213 Sunbird/0.3.1 How can I assign colours to event categories? Sunbird 0.2 and Calendar 0.8 In Sunbird 0.2 and Calendar 0.8, you can define styles for event categories in the userChrome.css file. Example: .event-category-cycling{ background-color: #99FFCC!important; } .event-category-meeting{ background-color: #00FF99!important; } These lines set the background colours for 'cycling' and 'meeting' events, respectively. It is CSS, i.e. you can also define other attributes like 'border-color' or include background pictures: Example: .event-category-radtour{ color: black!important; border-color: blue !important; background-image: url(file:///D|/etc/bbbike/images/srtbike.gif); background-position: center center; background-repeat: no-repeat; border-width: 2px ! important; } This lets all 'Radtour' events appear with a blue border and a road bike icon (contained in the file specified above). Sunbird 0.3 Since calendar 0.3, the format must be Example: [item-category~="Radtour"]{ color: black!important; border-color: blue !important; background-image: url(file:///D|/etc/bbbike/images/srtbike.gif); background-position: center center; background-repeat: no-repeat; border-width: 2px ! important; Reproducible: Always Steps to Reproduce: 1.do an :all file search for file userachrome 2. 3. Actual Results: No file with that name is located Expected Results: I should have been able to make changes to colors of event categories!
Could you please clarify what the actual bug here is. Is it that a userchrome.css file in your profile is not recognized or is it, that you can no longer style your event categories?
Robert, userChrome.css file does not exist in a new profile. You can create it manually. See [http://kb.mozillazine.org/UserChrome.css] for step by step instruction. The sample given for Sunbird 0.3 works fine for me using Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3pre) Gecko/20070305 Calendar/0.5pre For me this bugs seems either Invalid or Worksforme depending on what the actual problem is.
Whiteboard: [qa discussion needed]
Perhaps an empty (or commented out) userchrome.css should be created automagically in a new profile (or it should be created automagically when accessing the profile). But, a little note in the help-file or releasenotes would be enough too...
This is an advanced user option. Since it is documented in the Kb advanced users can find it and create it so, we are not going to programmaticaly create this file. --> WONTFIX
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
Whiteboard: [qa discussion needed]
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.