mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-19 04:44:21 -05:00
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
This commit is contained in:
parent
a7c1b9f31c
commit
8b7045f1c2
@ -166,6 +166,12 @@ ChannelFeed::ChannelFeed(QWidget *parent)
|
|||||||
item2->setFont(itemFont);
|
item2->setFont(itemFont);
|
||||||
item3->setFont(itemFont);
|
item3->setFont(itemFont);
|
||||||
item4->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);
|
QTimer *timer = new QTimer(this);
|
||||||
timer->connect(timer, SIGNAL(timeout()), this, SLOT(checkUpdate()));
|
timer->connect(timer, SIGNAL(timeout()), this, SLOT(checkUpdate()));
|
||||||
|
@ -465,28 +465,35 @@ void ForumsDialog::insertForums()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
itemFont = QFont("ARIAL", 10);
|
||||||
|
itemFont.setBold(true);
|
||||||
|
|
||||||
/* now we can add them in as a tree! */
|
/* now we can add them in as a tree! */
|
||||||
QList<QTreeWidgetItem *> TopList;
|
QList<QTreeWidgetItem *> TopList;
|
||||||
QTreeWidgetItem *item = new QTreeWidgetItem((QTreeWidget*)0);
|
QTreeWidgetItem *item = new QTreeWidgetItem((QTreeWidget*)0);
|
||||||
item -> setText(0, tr("Your Forums"));
|
item -> setText(0, tr("Your Forums"));
|
||||||
|
item -> setFont(0,itemFont);
|
||||||
item -> setIcon(0,(QIcon(IMAGE_FOLDER)));
|
item -> setIcon(0,(QIcon(IMAGE_FOLDER)));
|
||||||
item -> addChildren(AdminList);
|
item -> addChildren(AdminList);
|
||||||
TopList.append(item);
|
TopList.append(item);
|
||||||
|
|
||||||
item = new QTreeWidgetItem((QTreeWidget*)0);
|
item = new QTreeWidgetItem((QTreeWidget*)0);
|
||||||
item -> setText(0, tr("Subscribed Forums"));
|
item -> setText(0, tr("Subscribed Forums"));
|
||||||
|
item -> setFont(0,itemFont);
|
||||||
item -> setIcon(0,(QIcon(IMAGE_FOLDERRED)));
|
item -> setIcon(0,(QIcon(IMAGE_FOLDERRED)));
|
||||||
item -> addChildren(SubList);
|
item -> addChildren(SubList);
|
||||||
TopList.append(item);
|
TopList.append(item);
|
||||||
|
|
||||||
item = new QTreeWidgetItem((QTreeWidget*)0);
|
item = new QTreeWidgetItem((QTreeWidget*)0);
|
||||||
item -> setText(0, tr("Popular Forums"));
|
item -> setText(0, tr("Popular Forums"));
|
||||||
|
item -> setFont(0,itemFont);
|
||||||
item -> setIcon(0,(QIcon(IMAGE_FOLDERGREEN)));
|
item -> setIcon(0,(QIcon(IMAGE_FOLDERGREEN)));
|
||||||
item -> addChildren(PopList);
|
item -> addChildren(PopList);
|
||||||
TopList.append(item);
|
TopList.append(item);
|
||||||
|
|
||||||
item = new QTreeWidgetItem((QTreeWidget*)0);
|
item = new QTreeWidgetItem((QTreeWidget*)0);
|
||||||
item -> setText(0, tr("Other Forums"));
|
item -> setText(0, tr("Other Forums"));
|
||||||
|
item -> setFont(0,itemFont);
|
||||||
item -> setIcon(0,(QIcon(IMAGE_FOLDERYELLOW)));
|
item -> setIcon(0,(QIcon(IMAGE_FOLDERYELLOW)));
|
||||||
item -> addChildren(OtherList);
|
item -> addChildren(OtherList);
|
||||||
TopList.append(item);
|
TopList.append(item);
|
||||||
|
@ -83,6 +83,7 @@ private:
|
|||||||
std::string mCurrPostId;
|
std::string mCurrPostId;
|
||||||
|
|
||||||
QFont mForumNameFont;
|
QFont mForumNameFont;
|
||||||
|
QFont itemFont;
|
||||||
|
|
||||||
/** Qt Designer generated object */
|
/** Qt Designer generated object */
|
||||||
Ui::ForumsDialog ui;
|
Ui::ForumsDialog ui;
|
||||||
|
Loading…
Reference in New Issue
Block a user