[QGit] [PATCH] Modify Highlight Color at File Context View.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 3507b3f0b13287c5a25a31b238527b5920555c5c Mon Sep 17 00:00:00 2001
From: Frank Li <Frank.li@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux