Calendar sidebar cosmetics

It should be white to be in line with the rest of the
sidebars and have some semblance of coherence.

I also put a rectangle around the box so if the day
color is white you can still see there is a ride that day.

A summary ala the interval summary will come next summarising
either day, week or month for the ride selected.
This commit is contained in:
Mark Liversedge
2012-11-10 20:54:17 +00:00
parent efa6928c2b
commit 3a7b3f0a05
2 changed files with 5 additions and 2 deletions

View File

@@ -230,7 +230,8 @@ GcCalendar::event(QEvent *e)
// fill the background
QPainter painter(this);
QRect all(0,0,width(),height());
painter.fillRect(all, QColor("#B3B4BA"));
//painter.fillRect(all, QColor("#B3B4BA"));
painter.fillRect(all, QColor(Qt::white));
}
int n=0;
@@ -409,6 +410,7 @@ GcLabel::paintEvent(QPaintEvent *e)
QPainter painter(this);
QRect all(0,0,width(),height());
painter.fillRect(all, bgColor);
painter.drawRect(QRect(0,0,width()-1,height()-1));
}
if (selected) {

View File

@@ -517,7 +517,8 @@ MainWindow::MainWindow(const QDir &home) :
// RIGHT SIDEBAR
gcCalendar = new GcCalendar(this);
gcCalendar->setStyleSheet("background: #B3B4BA;");
//gcCalendar->setStyleSheet("background: #B3B4BA;");
gcCalendar->setStyleSheet("background: white;");
// TOOLBOX
toolBox = new QToolBox(this);