mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-23 02:27:29 -05:00
Fix icons not loading on Linux and MacOS
This commit is contained in:
parent
e30a4623c5
commit
4ac4f00620
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user