Fix icons not loading on Linux and MacOS

This commit is contained in:
WarmUpTill 2023-03-25 23:32:44 +01:00 committed by WarmUpTill
parent e30a4623c5
commit 4ac4f00620
3 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ DurationModifierEdit::DurationModifierEdit(QWidget *parent)
_toggle = new QPushButton(parent);
_toggle->setMaximumWidth(22);
const auto path = QString::fromStdString(getDataFilePath(
"res/images/" + GetThemeTypeName() + "time.svg"));
"res/images/" + GetThemeTypeName() + "Time.svg"));
_toggle->setIcon(QIcon(path));
populateDurationModifierTypes(_condition);
QWidget::connect(_condition, SIGNAL(currentIndexChanged(int)), this,

View File

@ -28,7 +28,7 @@ MacroTreeItem::MacroTreeItem(MacroTree *tree, std::shared_ptr<Macro> macroItem,
if (isGroup) {
const auto path = QString::fromStdString(getDataFilePath(
"res/images/" + GetThemeTypeName() + "group.svg"));
"res/images/" + GetThemeTypeName() + "Group.svg"));
QIcon icon(path);
QPixmap pixmap = icon.pixmap(QSize(16, 16));
_iconLabel = new QLabel();

View File

@ -121,7 +121,7 @@ StatusDock::StatusDock(QWidget *parent) : OBSDock(parent)
action->setProperty("themeID", QVariant(QString::fromUtf8("cogsIcon")));
action->connect(action, &QAction::triggered, OpenSettingsWindow);
const auto path = QString::fromStdString(getDataFilePath(
"res/images/" + GetThemeTypeName() + "advanced.svg"));
"res/images/" + GetThemeTypeName() + "Advanced.svg"));
QIcon icon(path);
action->setIcon(icon);