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:
Mark Liversedge
2021-08-24 15:35:38 +01:00
parent fecaad5cbf
commit e02e19a979
2 changed files with 5 additions and 1 deletions

View File

@@ -24,7 +24,7 @@
#include <QFontMetrics>
#ifdef Q_OS_MAC
static int spacing_=4;
static int spacing_=12;
#else
static int spacing_=8;
#endif

View File

@@ -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()));