fixed menu separators on non-windows platforms

This commit is contained in:
itsmattkc
2019-03-25 10:51:39 +11:00
parent 86b0787f4c
commit 83a181a6db
+6
View File
@@ -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);
}