-rw-r--r-- | library/datebookmonth.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/library/datebookmonth.cpp b/library/datebookmonth.cpp index 013ab66..2616b7b 100644 --- a/library/datebookmonth.cpp +++ b/library/datebookmonth.cpp @@ -30,4 +30,7 @@ #include <qwhatsthis.h> +static const QColor s_colorNormalLight = QColor(255, 150, 150); +static const QColor s_colorRepeatLight = QColor(150, 150, 255); +static const QColor s_colorHolidayLight= QColor(150, 255, 150); DateBookMonthHeader::DateBookMonthHeader( QWidget *parent, const char *name ) @@ -611,5 +614,5 @@ void DayItemMonth::paint( QPainter *p, const QColorGroup &cg, if (repeatAllDay) { p->fillRect( 0, 0, cr.width(), cr.height() / 2, - colorNormalLight ); + s_colorNormalLight ); p->fillRect( 0, cr.height() / 2, cr.width(), cr.height() / 2, colorRepeatLight ); @@ -617,12 +620,12 @@ void DayItemMonth::paint( QPainter *p, const QColorGroup &cg, if (!holidayAllDay) { p->fillRect( 0, 0, cr.width(), cr.height(), - colorNormalLight ); + s_colorNormalLight ); } else { p->fillRect( 0, 0, cr.width(), cr.height(), - QColor(0,220,0) ); + s_colorHolidayLight ); } } else if (repeatAllDay) { p->fillRect( 0, 0, cr.width(), cr.height(), - colorRepeatLight ); + s_colorRepeatLight ); } } else { |