git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53063
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_colHeaderFg,
m_colHeaderBg,
m_colBackground,
m_colHeaderFg,
m_colHeaderBg,
m_colBackground,
// the attributes for each of the month days
wxCalendarDateAttr *m_attrs[31];
// the attributes for each of the month days
wxCalendarDateAttr *m_attrs[31];
m_colHighlightFg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
m_colHighlightBg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
m_colBackground = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
m_colHighlightFg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
m_colHighlightBg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
m_colBackground = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
- m_colSorrounding = wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT);
+ m_colSurrounding = wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT);
m_colHolidayFg = *wxRED;
// don't set m_colHolidayBg - by default, same as our bg colour
m_colHolidayFg = *wxRED;
// don't set m_colHolidayBg - by default, same as our bg colour
if ( date.GetMonth() != m_date.GetMonth() || !IsDateInRange(date) )
{
if ( date.GetMonth() != m_date.GetMonth() || !IsDateInRange(date) )
{
- // surrounding week or out-of-range
- // draw "disabled"
- dc.SetTextForeground(m_colSorrounding);
+ // draw the days of adjacent months in different colour
+ dc.SetTextForeground(m_colSurrounding);
changedColours = true;
}
else
changedColours = true;
}
else