Added 16:9 default icons when there is no pixmap data

This commit is contained in:
defnax 2025-12-17 20:01:18 +01:00
parent b7d9d40743
commit d78476ae73
7 changed files with 7 additions and 2 deletions

View file

@ -205,6 +205,8 @@ void GxsChannelGroupItem::fill()
GxsIdDetails::loadPixmapFromData(mGroup.mImage.mData, mGroup.mImage.mSize, chanImage,GxsIdDetails::ORIGINAL);
ui->logoLabel->setPixmap(chanImage);
} else {
ui->logoLabel->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/feeds_channel.png"));
}
if (IS_GROUP_SUBSCRIBED(mGroup.mMeta.mSubscribeFlags)) {

View file

@ -212,7 +212,7 @@ void GxsForumGroupItem::fill()
ui->forumlogo_label->setFixedSize(ITEM_PICTURE_FORMAT_RATIO*desired_height,desired_height);
if (IS_GROUP_PUBLISHER(mGroup.mMeta.mSubscribeFlags)) {
ui->forumlogo_label->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/forums.png"));
ui->forumlogo_label->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/feeds_forum.png"));
} else {
ui->forumlogo_label->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/forums-default.png"));
}

View file

@ -184,7 +184,7 @@ void PostedGroupItem::fill()
GxsIdDetails::loadPixmapFromData(mGroup.mGroupImage.mData, mGroup.mGroupImage.mSize, postedImage,GxsIdDetails::ORIGINAL);
ui->logoLabel->setPixmap(QPixmap(postedImage));
} else {
ui->logoLabel->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/posted.png"));
ui->logoLabel->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/feeds_board.png"));
}
if(mGroup.mMeta.mLastPost==0)

View file

@ -49,6 +49,9 @@
<file>icons/bullet_yellow_128.png</file>
<file>icons/collections.png</file>
<file>icons/flag-green.png</file>
<file>icons/feeds_board.png</file>
<file>icons/feeds_channel.png</file>
<file>icons/feeds_forum.png</file>
<file>icons/friends_128.png</file>
<file>icons/folder.png</file>
<file>icons/folderopen.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB