Fix missing icons in macos

This commit is contained in:
Luis Ángel San Martín Rodríguez 2022-10-23 14:41:03 +02:00
parent 21461ce8a0
commit 210a48f91e

View File

@ -26,7 +26,7 @@ YACReaderLibraryItemWidget::YACReaderLibraryItemWidget(QString n /*ame*/, QStrin
options = new QToolButton(this); options = new QToolButton(this);
QPixmap iconOptionsPixmap = hdpiPixmap(addExtensionToIconPath(":/images/sidebar/libraryOptions"), QSize(8, 8)); QPixmap iconOptionsPixmap = hdpiPixmap(":/images/sidebar/libraryOptions.svg", QSize(8, 8));
iconOptionsPixmap.setDevicePixelRatio(devicePixelRatioF()); iconOptionsPixmap.setDevicePixelRatio(devicePixelRatioF());
QLabel *helperLabel = new QLabel(options); QLabel *helperLabel = new QLabel(options);
helperLabel->move(4, 3); helperLabel->move(4, 3);
@ -147,7 +147,7 @@ void YACReaderLibraryItemWidget::select()
options->setHidden(false); options->setHidden(false);
QPixmap iconPixmap = hdpiPixmap(addExtensionToIconPath(":/images/sidebar/libraryIconSelected"), QSize(16, 16)); QPixmap iconPixmap = hdpiPixmap(":/images/sidebar/libraryIconSelected.svg", QSize(16, 16));
icon->setPixmap(iconPixmap); icon->setPixmap(iconPixmap);
isSelected = true; isSelected = true;