[QGit] [PATCH] Modify Highlight Color at File Context View.
>From 3507b3f0b13287c5a25a31b238527b5920555c5c Mon Sep 17 00:00:00 2001
From: Frank Li <Frank.li@freescale.com>
Date: Sat, 27 Sep 2008 11:41:03 +0800
Subject: [PATCH] Modify Highlight Color at File Context View.
Author and line number can be easily found when choose special commit.
Signed-off-by: Frank Li <Frank.li@freescale.com>
---
src/filecontent.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/filecontent.cpp b/src/filecontent.cpp
index 28e0f91..23c2e95 100644
--- a/src/filecontent.cpp
+++ b/src/filecontent.cpp
@@ -576,12 +576,14 @@ void FileContent::setAnnList() {
listWidgetAnn->clear();
listWidgetAnn->addItems(sl);
- QBrush b(Qt::darkGray);
+ QBrush fore(Qt::darkRed);
+ QBrush back(Qt::lightGray);
QFont f(listWidgetAnn->font());
f.setBold(true);
FOREACH (QVector<int>, it, curIdLines) {
QListWidgetItem* item = listWidgetAnn->item(*it);
- item->setForeground(b);
+ item->setForeground(fore);
+ item->setBackground(back);
item->setFont(f);
}
/* When listWidgetAnn get focus for the first time the current
--
1.6.0.2.1172.ga5ed0