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:
- the red background occurs when there is a level 1 heading containing the string 'appointment'
- otherwise the blue background occurs when there is a level 1 heading containing the string 'to do'
- otherwise the green background occurs when there is an entry for the date but neither of the headings above
Screenshot
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.