mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Fix missing icons in macos
This commit is contained in:
parent
21461ce8a0
commit
210a48f91e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user