Calendar:FAQ: Difference between revisions

(removing spam by SinerAram)
Line 108: Line 108:
===How can I assign colours to event categories?===
===How can I assign colours to event categories?===


In newer version, you can define styles for event categories in the userChrome.css file.
<b>Sunbird 0.2 and Calendar 0.8</b>


'''Example:'''<br>
In Sunbird 0.2 and Calendar 0.8, you can define styles for event categories in the userChrome.css file.
 
Example:<br>
.event-category-cycling{ background-color: #99FFCC!important; }<br>
.event-category-cycling{ background-color: #99FFCC!important; }<br>
.event-category-meeting{ background-color: #00FF99!important; }<br>
.event-category-meeting{ background-color: #00FF99!important; }<br>
Line 117: Line 119:
It is CSS, i.e. you can also define other attributes like 'border-color' or include background pictures:
It is CSS, i.e. you can also define other attributes like 'border-color' or include background pictures:


'''Example:'''<br>
Example:<br>
<pre>.event-category-radtour{  
<pre>.event-category-radtour{  
   color: black!important;
   color: black!important;
Line 128: Line 130:


This lets all 'Radtour' events appear with a blue border and a road bike icon (contained in the file specified above).
This lets all 'Radtour' events appear with a blue border and a road bike icon (contained in the file specified above).
<b>Sunbird 0.3</b>
Since calendar 0.3, the format must be
Example:<br>
<pre>[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;
}</pre>


===How can I assign colours to tasks?===
===How can I assign colours to tasks?===
4

edits