From efbfca55cd8926859533704e1f6be1dd9763664f Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 24 Mar 2019 22:48:50 +1100 Subject: [PATCH] corrected separator on native windows menus --- ui/mainwindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/mainwindow.cpp b/ui/mainwindow.cpp index 981de8f76..e3231966a 100644 --- a/ui/mainwindow.cpp +++ b/ui/mainwindow.cpp @@ -457,8 +457,11 @@ void MainWindow::Restyle() palette.setColor(QPalette::HighlightedText, Qt::white); // set default CSS - setStyleSheet("QPushButton::checked { background: rgb(25, 25, 25); }" - "QMenu::separator { background: #404040; }"); + QString stylesheet = "QPushButton::checked { background: rgb(25, 25, 25); }"; + if (!olive::CurrentConfig.use_native_menu_styling) { + stylesheet.append("QMenu::separator { background: #404040; }"); + } + setStyleSheet(stylesheet); }