From 8b7045f1c2b87248182238f92b1816e9b93ef14d Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 16 Sep 2009 00:01:09 +0000 Subject: [PATCH] set default textcolor for channel items set default Font for Forum items git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1655 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/ChannelFeed.cpp | 6 ++++++ retroshare-gui/src/gui/ForumsDialog.cpp | 7 +++++++ retroshare-gui/src/gui/ForumsDialog.h | 1 + 3 files changed, 14 insertions(+) diff --git a/retroshare-gui/src/gui/ChannelFeed.cpp b/retroshare-gui/src/gui/ChannelFeed.cpp index 5e441bb9a..dc36b1271 100644 --- a/retroshare-gui/src/gui/ChannelFeed.cpp +++ b/retroshare-gui/src/gui/ChannelFeed.cpp @@ -166,6 +166,12 @@ ChannelFeed::ChannelFeed(QWidget *parent) item2->setFont(itemFont); item3->setFont(itemFont); item4->setFont(itemFont); + + item1->setForeground(QBrush(QColor(79, 79, 79))); + item2->setForeground(QBrush(QColor(79, 79, 79))); + item3->setForeground(QBrush(QColor(79, 79, 79))); + item4->setForeground(QBrush(QColor(79, 79, 79))); + QTimer *timer = new QTimer(this); timer->connect(timer, SIGNAL(timeout()), this, SLOT(checkUpdate())); diff --git a/retroshare-gui/src/gui/ForumsDialog.cpp b/retroshare-gui/src/gui/ForumsDialog.cpp index 88635d66f..4f11e07bd 100644 --- a/retroshare-gui/src/gui/ForumsDialog.cpp +++ b/retroshare-gui/src/gui/ForumsDialog.cpp @@ -465,28 +465,35 @@ void ForumsDialog::insertForums() } } + itemFont = QFont("ARIAL", 10); + itemFont.setBold(true); + /* now we can add them in as a tree! */ QList TopList; QTreeWidgetItem *item = new QTreeWidgetItem((QTreeWidget*)0); item -> setText(0, tr("Your Forums")); + item -> setFont(0,itemFont); item -> setIcon(0,(QIcon(IMAGE_FOLDER))); item -> addChildren(AdminList); TopList.append(item); item = new QTreeWidgetItem((QTreeWidget*)0); item -> setText(0, tr("Subscribed Forums")); + item -> setFont(0,itemFont); item -> setIcon(0,(QIcon(IMAGE_FOLDERRED))); item -> addChildren(SubList); TopList.append(item); item = new QTreeWidgetItem((QTreeWidget*)0); item -> setText(0, tr("Popular Forums")); + item -> setFont(0,itemFont); item -> setIcon(0,(QIcon(IMAGE_FOLDERGREEN))); item -> addChildren(PopList); TopList.append(item); item = new QTreeWidgetItem((QTreeWidget*)0); item -> setText(0, tr("Other Forums")); + item -> setFont(0,itemFont); item -> setIcon(0,(QIcon(IMAGE_FOLDERYELLOW))); item -> addChildren(OtherList); TopList.append(item); diff --git a/retroshare-gui/src/gui/ForumsDialog.h b/retroshare-gui/src/gui/ForumsDialog.h index a5abde3b3..7b27cb283 100644 --- a/retroshare-gui/src/gui/ForumsDialog.h +++ b/retroshare-gui/src/gui/ForumsDialog.h @@ -83,6 +83,7 @@ private: std::string mCurrPostId; QFont mForumNameFont; + QFont itemFont; /** Qt Designer generated object */ Ui::ForumsDialog ui;