mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Mac Toolbar UI Tweaks
.. bit more breathing space required, as overly compressed. Especially since there is no application menu bar on Mac.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#include <QFontMetrics>
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
static int spacing_=4;
|
||||
static int spacing_=12;
|
||||
#else
|
||||
static int spacing_=8;
|
||||
#endif
|
||||
|
||||
@@ -381,7 +381,11 @@ MainWindow::MainWindow(const QDir &home)
|
||||
head->addWidget(lowbar);
|
||||
head->addWidget(styleSelector);
|
||||
head->addWidget(whatsthis);
|
||||
#ifdef Q_OS_MAC // no menu on mac, so lets have some breathing space
|
||||
head->setFixedHeight(searchBox->height() + (20 *dpiXFactor * 2));
|
||||
#else
|
||||
head->setFixedHeight(searchBox->height() + (16 *dpiXFactor));
|
||||
#endif
|
||||
|
||||
connect(searchBox, SIGNAL(searchResults(QStringList)), this, SLOT(setFilter(QStringList)));
|
||||
connect(searchBox, SIGNAL(searchClear()), this, SLOT(clearFilter()));
|
||||
|
||||
Reference in New Issue
Block a user