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 = new QToolBar();
editInfoToolBar->setStyleSheet("QToolBar {border: none;}"); editInfoToolBar->setStyleSheet("QToolBar {border: none;}");
#ifdef Q_OS_MAC if (theme.isMacosNative) {
libraryToolBar = new YACReaderMacOSXToolbar(this); libraryToolBar = new YACReaderMacOSXToolbar(this);
#else } else {
libraryToolBar = new YACReaderMainToolBar(this); libraryToolBar = new YACReaderMainToolBar(this);
#endif }
#ifndef NO_OPENGL #ifndef NO_OPENGL
//FLOW----------------------------------------------------------------------- //FLOW-----------------------------------------------------------------------