corrected separator on native windows menus

This commit is contained in:
itsmattkc
2019-03-24 22:48:50 +11:00
parent 03b1a7e01f
commit efbfca55cd
+5 -2
View File
@@ -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);
}