diff --git a/retroshare-gui/src/gui/ForumsDialog.cpp b/retroshare-gui/src/gui/ForumsDialog.cpp index afec8f03e..d5c5df2df 100644 --- a/retroshare-gui/src/gui/ForumsDialog.cpp +++ b/retroshare-gui/src/gui/ForumsDialog.cpp @@ -95,7 +95,7 @@ ForumsDialog::ForumsDialog(QWidget *parent) - /* Set header resize modes and initial section sizes */ + /* Set header resize modes and initial section sizes */ QHeaderView * ftheader = ui.forumTreeWidget->header () ; ftheader->setResizeMode (0, QHeaderView::Interactive); @@ -108,6 +108,9 @@ ForumsDialog::ForumsDialog(QWidget *parent) ttheader->resizeSection ( 0, 170 ); ttheader->resizeSection ( 1, 170 ); + + mForumNameFont = QFont("MS SANS SERIF", 12); + ui.forumName->setFont(mForumNameFont); /* Hide platform specific features */ @@ -658,10 +661,12 @@ void ForumsDialog::insertThreads() if (flatView) { child = new QTreeWidgetItem(); + ui.threadTreeWidget->setRootIsDecorated( false ); } else { child = new QTreeWidgetItem(parent); + ui.threadTreeWidget->setRootIsDecorated( true ); } { diff --git a/retroshare-gui/src/gui/ForumsDialog.h b/retroshare-gui/src/gui/ForumsDialog.h index 89dd24496..a5abde3b3 100644 --- a/retroshare-gui/src/gui/ForumsDialog.h +++ b/retroshare-gui/src/gui/ForumsDialog.h @@ -81,6 +81,8 @@ private: std::string mCurrForumId; std::string mCurrThreadId; std::string mCurrPostId; + + QFont mForumNameFont; /** Qt Designer generated object */ Ui::ForumsDialog ui; diff --git a/retroshare-gui/src/gui/ForumsDialog.ui b/retroshare-gui/src/gui/ForumsDialog.ui index f7d82c108..68ff2da4c 100644 --- a/retroshare-gui/src/gui/ForumsDialog.ui +++ b/retroshare-gui/src/gui/ForumsDialog.ui @@ -593,14 +593,14 @@ - 60 - 10 + 0 + 0 16777215 - 10 + 16777215 @@ -611,7 +611,11 @@ - Forum Name + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Arial'; font-size:10pt; font-weight:600; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Forum:</p></body></html> @@ -626,15 +630,20 @@ 0 - 10 + 0 16777215 - 10 + 1677215 + + QLabel{border: 2px solid grey; +border-radius: 10px; +background: white;} + @@ -803,6 +812,9 @@ p, li { white-space: pre-wrap; } 9 + + false +