ui: disable native OS styling

There really isn't much point to maintaining this and it directly opposes Qt's code so we'll be fighting them forever
This commit is contained in:
itsmattkc
2022-03-30 15:07:33 -07:00
parent 7c68efb0ce
commit 9617436584
5 changed files with 0 additions and 21 deletions
-13
View File
@@ -38,19 +38,6 @@ QString StyleManager::current_style_;
QMap<QString, QString> StyleManager::available_themes_;
QPalette StyleManager::platform_palette_;
void StyleManager::UseOSNativeStyling(QWidget *widget)
{
#if defined(Q_OS_WINDOWS)
QStyle* s = QStyleFactory::create(QStringLiteral("windowsvista"));
widget->setStyle(s);
widget->setPalette(platform_palette_);
#elif defined(Q_OS_MAC)
QStyle* s = QStyleFactory::create(QStringLiteral("macintosh"));
widget->setStyle(s);
widget->setPalette(platform_palette_);
#endif
}
QPalette StyleManager::ParsePalette(const QString& ini_path)
{
QSettings ini(ini_path, QSettings::IniFormat);