mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
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:
parent
90e7a3cd54
commit
3208cf9e3a
6 changed files with 73 additions and 130 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue