mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Honour Font preferences in Side/Scope/Chart bar
This commit is contained in:
@@ -38,12 +38,6 @@ ChartBar::ChartBar(Context *context) : QWidget(context->mainWindow), context(con
|
||||
vlayout->addLayout(layout);
|
||||
vlayout->addStretch();
|
||||
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
buttonFont.setFamily("Lucida Grande");
|
||||
#else
|
||||
buttonFont.setFamily("Helvetica");
|
||||
#endif
|
||||
buttonFont.setPointSize(10);
|
||||
buttonFont.setWeight(QFont::Black);
|
||||
|
||||
|
||||
@@ -36,11 +36,7 @@ GcScopeBar::GcScopeBar(Context *context) : QWidget(context->mainWindow), context
|
||||
searchLabel->setFixedHeight(20);
|
||||
searchLabel->setHighlighted(true);
|
||||
QFont font;
|
||||
#ifdef Q_OS_MAC
|
||||
font.setFamily("Lucida Grande");
|
||||
#else
|
||||
font.setFamily("Helvetica");
|
||||
#endif
|
||||
|
||||
font.setPointSize(10);
|
||||
font.setWeight(QFont::Black);
|
||||
searchLabel->setFont(font);
|
||||
@@ -304,7 +300,6 @@ GcScopeButton::GcScopeButton(QWidget *parent) : QWidget(parent)
|
||||
setFixedWidth(60);
|
||||
red = highlighted = checked = false;
|
||||
QFont font;
|
||||
font.setFamily("Helvetica");
|
||||
font.setPointSize(10);
|
||||
font.setWeight(QFont::Black);
|
||||
setFont(font);
|
||||
|
||||
@@ -298,11 +298,9 @@ GcSplitterHandle::init(QString title, Qt::Orientation orientation,
|
||||
#ifdef Q_OS_MAC
|
||||
titleLabel->setFixedHeight(16);
|
||||
titleLabel->setYOff(1);
|
||||
font.setFamily("Lucida Grande");
|
||||
font.setPointSize(11);
|
||||
#else
|
||||
titleLabel->setYOff(1);
|
||||
font.setFamily("Helvetica");
|
||||
font.setPointSize(10);
|
||||
#endif
|
||||
font.setWeight(QFont::Black);
|
||||
|
||||
Reference in New Issue
Block a user