From MozillaZine Knowledge Base
(Difference between revisions)
Revision as of 22:55, 22 October 2005
Advanced Tip: Calendar Grid Background Image
To add a personal background image to all calendar grid views,
save this css in your profile  chrome directory,
import this CSS in your userChrome.css ,
add your image, and modify the url.
For Sunbird, the userChrome.css path may be something like the following
w2k: c:\Documents and Settings\USER\Application Data\Mozilla\Sunbird\Profiles\NNNNN.default\chrome\userChrome.css
1. Save this file in your profile as chrome/CalendarGridBackgroundImage.css
2. Add the following to profile file chrome/userChrome.css (create if none):
3. Put the desired background image in the same directory.
4. Modify the url in CalendarGridBackgroundImage.css to the image filename.
The CSS was tested on Sunbird 0.2rc1 and 20041217-cal on Mozilla 1.7.5.
It is likely to require changes for future versions.
Warning: using userChrome.css can lead to errors developers can't reproduce.
Test with userChrome.css removed before reporting Sunbird/Calendar errors.
/* Add background image  to all calendar grid views . */
/* Override opacity  of grid cells [5,6] and nested  event boxes
to partly transparent so that image behind them is visible.
Some opacity is required to show colored backgrounds, such as selected cells,
as well as borders and text.
(BUG: Breaks week view event selection, so comment out week-view below.)
(BUG: Overlaid event boxes not transparent in dayview, weekview.) */
opacity : 0.75;
 Where is my profile folder?
 Customizing Mozilla: User CSS
 CSS 2: Colors and Backgrounds: The Background
 CSS 3: Opacity
 View XUL Sources (used to build calendar.jar)
 Skin CSS Sources for views (used to build calendar.jar)
Winstripe Skin (Sunbird on windows & Linux)
Pinstrip Skin (Sunbird on MacOSX)
Classic Skin (Calendar Extension on firefox, thunderbird, mozilla suite classic theme)
Modern skin (Calendar Extension on mozilla suite modern theme)