mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
Merge pull request #2022 from defnax/small-fixes-channels
[Channels] Fixed to get work selection color on dark stylesheets
This commit is contained in:
commit
05d311e55c
@ -36,6 +36,8 @@
|
||||
|
||||
class ChannelPostThumbnailView: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
// This variable determines the zoom factor on the text below thumbnails. 2.0 is mostly correct for all screen.
|
||||
static constexpr float THUMBNAIL_OVERSAMPLE_FACTOR = 2.0;
|
||||
|
@ -705,15 +705,15 @@ void GxsChannelPostsWidgetWithModel::groupNameChanged(const QString &name)
|
||||
|
||||
QIcon GxsChannelPostsWidgetWithModel::groupIcon()
|
||||
{
|
||||
// if (mStateHelper->isLoading(mTokenTypeGroupData) || mStateHelper->isLoading(mTokenTypeAllPosts)) {
|
||||
// return QIcon(":/images/kalarm.png");
|
||||
// }
|
||||
/* CHANNEL IMAGE */
|
||||
QPixmap chanImage;
|
||||
if (mGroup.mImage.mData != NULL) {
|
||||
GxsIdDetails::loadPixmapFromData(mGroup.mImage.mData, mGroup.mImage.mSize, chanImage,GxsIdDetails::ORIGINAL);
|
||||
} else {
|
||||
chanImage = FilesDefs::getPixmapFromQtResourcePath(ChannelPostThumbnailView::CHAN_DEFAULT_IMAGE);
|
||||
}
|
||||
|
||||
// if (mNewCount) {
|
||||
// return QIcon(":/images/message-state-new.png");
|
||||
// }
|
||||
|
||||
return QIcon();
|
||||
return QIcon(chanImage);
|
||||
}
|
||||
|
||||
/*************************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user