diff --git a/src/GcToolBar.cpp b/src/GcToolBar.cpp index 0be09b660..e4101a77d 100644 --- a/src/GcToolBar.cpp +++ b/src/GcToolBar.cpp @@ -20,7 +20,11 @@ GcToolBar::GcToolBar(QWidget *parent) : QWidget(parent) { +#ifdef WIN32 + setFixedHeight(40); +#else setFixedHeight(50); +#endif setContentsMargins(0,0,0,0); layout = new QHBoxLayout(this); layout->setSpacing(10); @@ -72,7 +76,9 @@ GcToolBar::paintBackground(QPaintEvent *) painter.setPen(black); painter.drawLine(0,height()-1, width()-1, height()-1); +#ifndef WIN32 // not on windows clashes with menu QPen gray(QColor(230,230,230)); painter.setPen(gray); painter.drawLine(0,0, width()-1, 0); +#endif } diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index b7f32a2bd..f9090eb8e 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -796,6 +796,11 @@ MainWindow::MainWindow(const QDir &home) : /*---------------------------------------------------------------------- * Application Menus *--------------------------------------------------------------------*/ +#ifdef WIN32 + menuBar()->setStyleSheet("QMenuBar { background: rgba(225,225,225); }" + "QMenuBar::item { background: rgba(225,225,225); }"); + menuBar()->setContentsMargins(0,0,0,0); +#endif QMenu *fileMenu = menuBar()->addMenu(tr("&Athlete")); fileMenu->addAction(tr("&New..."), this, SLOT(newCyclist()), tr("Ctrl+N"));