mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user