recreating menu structure

This commit is contained in:
itsmattkc
2019-06-18 00:24:08 -07:00
parent a468b3727d
commit 25564fdb6b
13 changed files with 330 additions and 9 deletions
+14 -2
View File
@@ -4,7 +4,7 @@
#include <QPalette>
#include <QStyleFactory>
void olive::style::SetDefault()
void olive::style::AppSetDefault()
{
qApp->setStyle(QStyleFactory::create("Fusion"));
@@ -35,10 +35,22 @@ void olive::style::SetDefault()
bool set_separator_color = false;
#ifndef Q_OS_WIN
//set_separator_color = !olive::config.use_native_menu_styling;
set_separator_color = true;
#endif
if (set_separator_color) {
stylesheet.append("QMenu::separator { background: #404040; }");
stylesheet.append("QMenu::separator { background: #303030; }");
}
qApp->setStyleSheet(stylesheet);
}
void olive::style::WidgetSetNative(QWidget *w)
{
#ifdef Q_OS_WIN
w->setStyleSheet("");
w->setPalette(w->style()->standardPalette());
w->setStyle(QStyleFactory::create("windowsvista"));
#else
Q_UNUSED(w)
#endif
}