MonthCalendar Modifications

Instead of the bright red background that occurs in each calendar date cell when there is a date entry, I wanted a paler colour and the colour to change depending on the content of the page.

In the following screenshot:

Screenshot

pageinfluencescalbackground.jpg

Code snippet

This is a snippet showing lines additional to MonthCalendar.py (in 1.5beta3). Naturally :-) the hard-coded text-to-background-colour mapping would, in a production system, be replaced by a configuration page instead, enabling user-configured variety and including internationalization possibilities.

pageinfluencescalbackground.py

MoinMoin: GeoffGardiner/MonthCalendarMods (last edited 2007-10-29 19:21:16 by localhost)