Calendar colours

For discussing the Mozilla Calendar, Sunbird and Lightning projects.
Post Reply
Basil
Posts: 6
Joined: February 1st, 2005, 3:44 am

Calendar colours

Post by Basil »

Hey

i recently downloaded Mozilla Calendar for Thunderbird.. i was just wondering if there was any way to change it's colours? I mean, from the light blue, I'd rather something a little darker actually... are there any themes out there which change this?
faun
Posts: 190
Joined: December 4th, 2003, 11:44 am
Location: Germany

Post by faun »

you can adjust the colors via userContent.css / userChrome.css. take a look on mozilla.org, the general use of these files are described there.
User avatar
Rod Whiteley
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Post by Rod Whiteley »

trashkid is right. In particular, see here for details of the files, and here for ideas about what you can change.

For example, you can add a line like this to userChrome.css to make the blue background for "today" darker:

Code: Select all

.month-day-box-class[today=true] {background-color:#aaf !important;}
Rod
Basil
Posts: 6
Joined: February 1st, 2005, 3:44 am

Post by Basil »

Ok thanks, I'll look into that...

Has no one made any themes?
User avatar
Rod Whiteley
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Post by Rod Whiteley »

The Themes page on the project site lists some, but the pictures all seem to show the same background colours in the main view.
Rod
Lost User 53265
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Installing new theme

Post by Lost User 53265 »

How does one go about installing a new theme in Sunbird? Thank you for any help.
Basil
Posts: 6
Joined: February 1st, 2005, 3:44 am

Post by Basil »

COuld someone tell me where to find those css files please? I'm looking in the Moz Thunderbird direcotry, but can't find anything :S

Thanks :)

Never mind, just realised I got to make them myself :)
Basil
Posts: 6
Joined: February 1st, 2005, 3:44 am

Post by Basil »

Ok, but I do have a small problem... i can't find the folder 'Profiles' in my Thunderbird direcotry. I have Mozilla Thunderbird\default\profile but that's it...
i also don't have the userChrome-example.css or userContent-example.css files...

I do however have them in Firefox.

What's going on?
User avatar
Rod Whiteley
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Finding userChrome.css

Post by Rod Whiteley »

Basil wrote:...my Thunderbird direcotry...
There is no single Thunderbird directory. It stores things in three places, which might be completely different places. The product code is in once place, your account data is in another place, and the product profile is in another. To change the styles, you want the product profile. On my machine userChrome.css is in the directory:

Code: Select all

C:\WINDOWS\Application Data\Thunderbird\Profiles\default.xn6\chrome

If the file userChrome.css is not there, either rename the example file there or create it as a new plain text file.
Rod
User avatar
Rod Whiteley
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Re: Installing a theme in Sunbird

Post by Rod Whiteley »

rocky111 wrote:How does one go about installing a new theme in Sunbird?

I've just installed the Skypilot theme in Sunbird. Here are the steps. The same steps probably work for other themes. I used InfoZip, but you can use any zip or jar tool.

Download the theme to a temporary directory. Extract install.rdf from it:

Code: Select all

unzip skypilotf08t05.jar install.rdf

Edit install.rdf and add details for Sunbird:

Code: Select all

<!-- Sunbird -->
<em:targetApplication>
  <Description>
    <em:id>{718e30fb-e89b-41dd-9da7-e25a45638b28}</em:id>
    <em:minVersion>0.2</em:minVersion>
    <em:maxVersion>1.0+</em:maxVersion>
  </Description>
</em:targetApplication>

Put instll.rdf back in the jar:

Code: Select all

zip skypilotf08t05.jar install.rdf

Make Sunbird install the theme. If this works, nothing seems to happen--there is no error message, and Sunbird's window does not open:

Code: Select all

sunbird -install-global-theme F:\temp\skypilotf08t05.jar

Go to Sunbird's profile directory. Mine is here, but yours will be different:

Code: Select all

C:\WINDOWS\Application Data\Mozilla\Sunbird\Profiles\3wma0qhu.default

Edit the file prefs.js and add a line that selects the theme:

Code: Select all

user_pref("general.skins.selectedSkin", "skypilot/1.0");

Start Sunbird normally.
Rod
Lost User 53265
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Installing theme

Post by Lost User 53265 »

Thank you, Rod. I tried the skypilot theme and it installed just fine except it took up the upper half of my screen. At least, with your instructions, I got as far as I did. I tried some of the other themes and can't seem to find install.rdf file in them. Hopefully, as Sunbird progresses, they will have interchangable themes to make it easy for guys like me. Thank you again.
Basil
Posts: 6
Joined: February 1st, 2005, 3:44 am

Post by Basil »

Would this work for Mozilla Calendar in Thunderbird?
User avatar
Rod Whiteley
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Post by Rod Whiteley »

Basil wrote:Would this work for Mozilla Calendar in Thunderbird?
It's not clear what you mean. To install a theme in Thunderbird, use your browser to download the file then in Thunderbird choose Tools - Themes from the menu bar and press the "Install" button (should be "Install...") to install it.
Rod
faun
Posts: 190
Joined: December 4th, 2003, 11:44 am
Location: Germany

Post by faun »

Take a look here: http://mozthemes.tk/
Some of these themes for Thunderbird support the calendar-extension, too.
Post Reply