Removed some more hardcoded colors

- NetworkDialog
- ChatLobbyWidget
- FeedReader
Fixed style blacknight

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6476 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-07-04 20:09:46 +00:00
parent 90e7a3cd54
commit 3208cf9e3a
6 changed files with 73 additions and 130 deletions

View file

@ -440,8 +440,11 @@ void FeedReaderDialog::calculateFeedItem(QTreeWidgetItem *item, uint32_t &unread
bool deactivated = item->data(COLUMN_FEED_DATA, ROLE_FEED_DEACTIVATED).toBool();
QColor colorActivated;
QColor colorDeactivated = QColor(Qt::gray);
QColor colorActivated = ui->feedTreeWidget->palette().color(QPalette::Active, QPalette::Text);
QColor color = ui->feedTreeWidget->palette().color(QPalette::Active, QPalette::Base);
QColor colorDeactivated;
colorDeactivated.setRgbF((color.redF() + colorActivated.redF()) / 2, (color.greenF() + colorActivated.greenF()) / 2, (color.blueF() + colorActivated.blueF()) / 2);
for (int i = 0; i < COLUMN_FEED_COUNT; i++) {
QFont font = item->font(i);
font.setBold(unreadCountItem != 0);