Skip to content

Commit

Permalink
Tweak styling for Zones/Measures config on MacOS
Browse files Browse the repository at this point in the history
.. tab styling is very different there.
  • Loading branch information
Mark Liversedge authored and Mark Liversedge committed Nov 30, 2021
1 parent e0ec5ba commit 257d877
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gui/AthleteConfigDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ AthleteConfig::AthleteConfig(QDir home, Context *context) :
QColor tabselect = std.color(QPalette::Text);
if (GColor(CPLOTBACKGROUND) == std.color(QPalette::Base)) tabselect = GColor(CPLOTMARKER);

#ifndef Q_OS_MAC
QString styling = QString("QTabWidget { background: %1; }"
"QTabWidget::pane { border: 0px; }"
"QTabBar::tab { background: %1; "
Expand All @@ -197,6 +198,7 @@ AthleteConfig::AthleteConfig(QDir home, Context *context) :
.arg(std.color(QPalette::Text).name()); // 6 tab text color
zonesTab->setStyleSheet(styling);
measuresTab->setStyleSheet(styling);
#endif

QTabWidget *tabs = new QTabWidget(this);
tabs->addTab(athletePage, tr("About"));
Expand Down

0 comments on commit 257d877

Please sign in to comment.