From 3a7b3f0a0548bed1166ded62a2b968d98eebbce6 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 10 Nov 2012 20:54:17 +0000 Subject: [PATCH] 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. --- src/GcCalendar.cpp | 4 +++- src/MainWindow.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/GcCalendar.cpp b/src/GcCalendar.cpp index be3ace7e0..c9bd1f542 100644 --- a/src/GcCalendar.cpp +++ b/src/GcCalendar.cpp @@ -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) { diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 5ca4ee2a1..ea8a6e379 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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);