Adapt to OBS switch from "themeID" to "class" properties

OBS commit: cb026964b00c366943a3c16dfb1511eafc24c035
This commit is contained in:
WarmUpTill
2024-10-09 10:10:52 +02:00
committed by WarmUpTill
parent 0fd5f47982
commit 8d9519c849
7 changed files with 262 additions and 8 deletions

View File

@@ -197,6 +197,7 @@ StatusDockWidget::StatusDockWidget(QWidget *parent) : QFrame(parent)
auto action = new QAction;
action->setProperty("themeID", QVariant(QString::fromUtf8("cogsIcon")));
action->setProperty("class", QVariant(QString::fromUtf8("icon-cogs")));
action->connect(action, &QAction::triggered, OpenSettingsWindow);
const auto path = QString::fromStdString(GetDataFilePath(
"res/images/" + GetThemeTypeName() + "Advanced.svg"));