Use the native macos toolbar depending on the theme.

This commit is contained in:
Luis Ángel San Martín 2018-09-10 20:49:14 +02:00 committed by Luis Ángel San Martín
parent a3024a1bee
commit 176565d78c

View File

@ -179,11 +179,11 @@ void LibraryWindow::doLayout()
editInfoToolBar = new QToolBar();
editInfoToolBar->setStyleSheet("QToolBar {border: none;}");
#ifdef Q_OS_MAC
libraryToolBar = new YACReaderMacOSXToolbar(this);
#else
libraryToolBar = new YACReaderMainToolBar(this);
#endif
if (theme.isMacosNative) {
libraryToolBar = new YACReaderMacOSXToolbar(this);
} else {
libraryToolBar = new YACReaderMainToolBar(this);
}
#ifndef NO_OPENGL
//FLOW-----------------------------------------------------------------------