aboutsummaryrefslogtreecommitdiff
path: root/lib/browser.tcl
diff options
context:
space:
mode:
authorPhilipp A. Hartmann <ph@sorgh.de>2008-03-05 17:54:22 +0100
committerShawn O. Pearce <spearce@spearce.org>2008-03-05 23:47:11 -0500
commitc382fdd79548a56fadf8f34d3484cf020eda3966 (patch)
treed0cd485c434726b230e496359add74f85ee9fdb5 /lib/browser.tcl
parent312fd92b069d26dce20f53e8fa4efea04b12e009 (diff)
downloadgit-c382fdd79548a56fadf8f34d3484cf020eda3966.tar.gz
git-c382fdd79548a56fadf8f34d3484cf020eda3966.tar.xz
git-gui: if a background colour is set, set foreground colour as well
In several places, only the background colour is set to an explicit value, sometimes even "white". This does not work well with dark colour themes. This patch tries to set the foreground colour to "black" in those situations, where an explicit background colour is set without defining any foreground colour. Signed-off-by: Philipp A. Hartmann <ph@sorgh.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/browser.tcl')
-rw-r--r--lib/browser.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/browser.tcl b/lib/browser.tcl
index 53d5a6281..ab470d126 100644
--- a/lib/browser.tcl
+++ b/lib/browser.tcl
@@ -39,7 +39,8 @@ constructor new {commit {path {}}} {
frame $w.list
set w_list $w.list.l
- text $w_list -background white -borderwidth 0 \
+ text $w_list -background white -foreground black \
+ -borderwidth 0 \
-cursor $cursor_ptr \
-state disabled \
-wrap none \