mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Diary Sidebar highlight current month
.. signpost what we've selected
This commit is contained in:
@@ -437,7 +437,7 @@ DiarySidebar::setSummary()
|
||||
//********************************************************************************
|
||||
GcMiniCalendar::GcMiniCalendar(Context *context, bool master) : context(context), master(master)
|
||||
{
|
||||
setContentsMargins(0,0,0,0);
|
||||
setContentsMargins(1,1,1,1);
|
||||
setAutoFillBackground(true);
|
||||
setObjectName("miniCalendar");
|
||||
|
||||
@@ -654,7 +654,13 @@ GcMiniCalendar::event(QEvent *e)
|
||||
QPainter painter(this);
|
||||
QRect all(0,0,width(),height());
|
||||
//painter.fillRect(all, QColor("#B3B4BA"));
|
||||
painter.fillRect(all, QColor(Qt::white));
|
||||
painter.fillRect(all, GColor(CPLOTBACKGROUND));
|
||||
|
||||
if (_ride) {
|
||||
QDate when = _ride->dateTime.date();
|
||||
if (when >= QDate(year,month,01) && when < QDate(year,month,01).addMonths(1))
|
||||
painter.fillRect(all, GColor(CPLOTMARKER));
|
||||
}
|
||||
}
|
||||
|
||||
int n=0;
|
||||
|
||||
Reference in New Issue
Block a user