git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
LFLi Frank-B20596 <frank.li@freescale.com>
Date
Sep 27, 2008, 03:44 UTC
Message-ID
<7FD1F85C96D70C4A89DA1DF7667EAE9607A217@zch01exm23.fsl.freescale.net>
In-Reply-To
<e5bfff550809260337o1523995ele3333c0de9295393@mail.gmail.com>
>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
Previous: Marco CostalbaNext: Marco Costalba
Message 13 of 21 in “[QGit] Can't compile under windows (MSVC2008)”
  1. Abdelrazak YounesSep 23, 2008
  2. Abdelrazak YounesSep 23, 2008
  3. [QGit] Some suggestionLi Frank-B20596, Sep 25, 2008
  4. Marco CostalbaSep 25, 2008
  5. Li Frank-B20596Sep 25, 2008
  6. Marco CostalbaSep 25, 2008
  7. Li Frank-B20596Sep 26, 2008
  8. Marco CostalbaSep 26, 2008
  9. Li Frank-B20596Sep 26, 2008
  10. Marco CostalbaSep 26, 2008
  11. Li Frank-B20596Sep 26, 2008
  12. Marco CostalbaSep 26, 2008
  13. [QGit] [PATCH] Modify Highlight Color at File Context View.Li Frank-B20596, Sep 27, 2008
  14. Marco CostalbaSep 27, 2008
  15. Marco CostalbaOct 7, 2008
  16. Abdelrazak YounesOct 7, 2008
  17. Abdelrazak YounesOct 7, 2008
  18. Marco CostalbaOct 1, 2008
  19. Marco CostalbaOct 4, 2008
  20. Li Frank-B20596Oct 4, 2008
  21. Marco CostalbaOct 5, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.