mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05:00
Changed the color for the posts in ForumsDialog.
- unread posts = black + bold - read parent posts of unread posts = gray + bold - read posts = gray git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3789 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
734301c2bc
commit
624aef2065
@ -844,7 +844,20 @@ void ForumsDialog::CalculateIconsAndFonts(QTreeWidgetItem *pItem, bool &bHasRead
|
||||
// set font
|
||||
for (int i = 0; i < COLUMN_THREAD_COUNT; i++) {
|
||||
QFont qf = pItem->font(i);
|
||||
qf.setBold(bUnread || bMyUnreadChilddren);
|
||||
|
||||
if (m_bIsForumSubscribed == false) {
|
||||
qf.setBold(false);
|
||||
pItem->setTextColor(i, Qt::black);
|
||||
} else if (bUnread) {
|
||||
qf.setBold(true);
|
||||
pItem->setTextColor(i, Qt::black);
|
||||
} else if (bMyUnreadChilddren) {
|
||||
qf.setBold(true);
|
||||
pItem->setTextColor(i, Qt::gray);
|
||||
} else {
|
||||
qf.setBold(false);
|
||||
pItem->setTextColor(i, Qt::gray);
|
||||
}
|
||||
pItem->setFont(i, qf);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user