From 83a181a6dba46c8d71daf5199ccc518458a80afc Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 25 Mar 2019 10:51:39 +1100 Subject: [PATCH] fixed menu separators on non-windows platforms --- ui/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/mainwindow.cpp b/ui/mainwindow.cpp index e3231966a..75f20f7a4 100644 --- a/ui/mainwindow.cpp +++ b/ui/mainwindow.cpp @@ -458,9 +458,15 @@ void MainWindow::Restyle() // set default CSS QString stylesheet = "QPushButton::checked { background: rgb(25, 25, 25); }"; + + // Windows menus have the option of being native, so we may not need this CSS +#ifdef Q_OS_WIN if (!olive::CurrentConfig.use_native_menu_styling) { +#endif stylesheet.append("QMenu::separator { background: #404040; }"); +#ifdef Q_OS_WIN } +#endif setStyleSheet(stylesheet); }