mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Use the native macos toolbar depending on the theme.
This commit is contained in:
parent
a3024a1bee
commit
176565d78c
@ -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-----------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user