From a4ad9c6467ac15af14178ff17d5384943dab7d38 Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 20 Feb 2021 13:47:33 +0100 Subject: [PATCH 1/2] fixed some values for font-size --- .../src/gui/qss/stylesheet/Standard.qss | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss index aa85f80e9..e79ec6d1c 100644 --- a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss +++ b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss @@ -125,7 +125,7 @@ GxsCreateCommentDialog QFrame#frame { CreateGxsChannelMsg QPushButton#postButton { font: bold; - font-size: 15pt; + font-size: 12pt; color: white; background: #0099cc; border-radius: 4px; @@ -147,7 +147,7 @@ GxsCreateCommentDialog QPushButton#postButton, GxsGroupDialog QPushButton#create PulseAddDialog QPushButton#pushButton_Post, PulseTopLevel QToolButton#toolButton_follow, PulseViewGroup QToolButton#toolButton_follow, WikiEditDialog QPushButton#pushButton_Submit{ font: bold; - font-size: 15pt; + font-size: 12pt; color: white; background: #0099cc; border-radius: 4px; @@ -174,7 +174,7 @@ WikiEditDialog QPushButton#pushButton_Submit:hover{ ShareManager QPushButton#closeButton { font: bold; - font-size: 15pt; + font-size: 12pt; color: white; background: #0099cc; border-radius: 4px; @@ -187,7 +187,7 @@ ShareManager QPushButton#closeButton { ShareManager QPushButton#addButton{ font: bold; - font-size: 15pt; + font-size: 12pt; color: white; background: #32CD32; border-radius: 4px; @@ -205,7 +205,7 @@ ShareManager QPushButton#addButton:hover{ SearchDialog QPushButton#pushButtonSearch { font: bold; - font-size: 15pt; + font-size: 12pt; color: white; background: #32CD32; border-radius: 4px; @@ -225,7 +225,7 @@ CreateGxsForumMsg QPushButton#postButton:disabled, PostedCreatePostDialog QPushB CreateGxsChannelMsg QPushButton#postButton:disabled, GxsCreateCommentDialog QPushButton#postButton:disabled, PulseAddDialog QPushButton#pushButton_Post:disabled, WikiEditDialog QPushButton#pushButton_Submit:disabled { font: bold; - font-size: 15pt; + font-size: 12pt; color: white; background: #d40000; border-radius: 4px; @@ -240,7 +240,7 @@ PulseAddDialog QPushButton#pushButton_Post:disabled, WikiEditDialog QPushButton# GxsForumThreadWidget QPushButton#forumName { font: bold; - font-size: 14pt; + font-size: 12pt; } CreateForumMsg > QToolBar#toolBar, CreateForumV2Msg > QToolBar#toolBar { @@ -855,7 +855,7 @@ PostedListWidgetWithModel QFrame#headerFrame { GxsForumThreadWidget QToolButton#subscribeToolButton { font: bold; - font-size: 14pt; + font-size: 12pt; color: white; background: #0099cc; border-radius: 4px; @@ -875,7 +875,7 @@ SecurityIpItem QFrame#mainFrame, MsgItem QFrame#msgFrame, SecurityItem QFrame#ma GxsChannelPostsWidgetWithModel QToolButton#subscribeToolButton { font: bold; - font-size: 14pt; + font-size: 12pt; color: white; background: #0099cc; border-radius: 4px; @@ -1057,7 +1057,7 @@ PostedListWidgetWithModel QTextBrowser#infoDescription { PostedCreatePostDialog QPushButton#submitButton { font: bold; - font-size: 15pt; + font-size: 12pt; color: white; background: #0099cc; border-radius: 4px; @@ -1191,17 +1191,17 @@ ChannelsCommentsItem QFrame#mainFrame, BoardsCommentsItem QFrame#mainFrame { } ChannelsCommentsItem QLabel#newCommentLabel, BoardsCommentsItem QLabel#newCommentLabel { - font-size: 14pt; + font-size: 12pt; font: bold; } ChannelsCommentsItem QLabel#subjectLabel, ChannelsCommentsItem QLabel#titleLabel , QLabel#nameLabel { - font-size: 14pt; + font-size: 12pt; font: bold; } BoardsCommentsItem QLabel#subjectLabel, QLabel#titleLabel , QLabel#nameLabel { - font-size: 14pt; + font-size: 12pt; font: bold; } From e258058f4d4dbc19689a3b1d592d8aa9225cc40e Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 20 Feb 2021 13:57:07 +0100 Subject: [PATCH 2/2] Fixed Avatar issue on comments feeds to have a good quality --- retroshare-gui/src/gui/feeds/BoardsCommentsItem.cpp | 2 +- retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/feeds/BoardsCommentsItem.cpp b/retroshare-gui/src/gui/feeds/BoardsCommentsItem.cpp index 7db1f023f..757d10ec5 100644 --- a/retroshare-gui/src/gui/feeds/BoardsCommentsItem.cpp +++ b/retroshare-gui/src/gui/feeds/BoardsCommentsItem.cpp @@ -432,7 +432,7 @@ void BoardsCommentsItem::setComment(const RsGxsComment& cmt) QPixmap pixmap; if(idDetails.mAvatar.mSize == 0 || !GxsIdDetails::loadPixmapFromData(idDetails.mAvatar.mData, idDetails.mAvatar.mSize, pixmap,GxsIdDetails::SMALL)) - pixmap = GxsIdDetails::makeDefaultIcon(cmt.mMeta.mAuthorId,GxsIdDetails::SMALL); + pixmap = GxsIdDetails::makeDefaultIcon(cmt.mMeta.mAuthorId,GxsIdDetails::LARGE); ui->avatarLabel->setPixmap(pixmap); emit sizeChanged(this); diff --git a/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp b/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp index 0ede46cc9..bfa33cde9 100644 --- a/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp +++ b/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp @@ -317,7 +317,7 @@ void ChannelsCommentsItem::loadMessage() QPixmap pixmap ; if(idDetails.mAvatar.mSize == 0 || !GxsIdDetails::loadPixmapFromData(idDetails.mAvatar.mData, idDetails.mAvatar.mSize, pixmap,GxsIdDetails::SMALL)) - pixmap = GxsIdDetails::makeDefaultIcon(cmt.mMeta.mAuthorId,GxsIdDetails::SMALL); + pixmap = GxsIdDetails::makeDefaultIcon(cmt.mMeta.mAuthorId,GxsIdDetails::LARGE); ui->avatarLabel->setPixmap(pixmap); //Change this item to be uploaded with thread element.