summaryrefslogtreecommitdiff
path: root/lib/choose_font.tcl
diff options
context:
space:
mode:
authorPhilipp A. Hartmann <ph@sorgh.de>2008-03-05 16:54:22 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2008-03-06 04:47:11 (GMT)
commitc382fdd79548a56fadf8f34d3484cf020eda3966 (patch)
treed0cd485c434726b230e496359add74f85ee9fdb5 /lib/choose_font.tcl
parent312fd92b069d26dce20f53e8fa4efea04b12e009 (diff)
downloadgit-c382fdd79548a56fadf8f34d3484cf020eda3966.zip
git-c382fdd79548a56fadf8f34d3484cf020eda3966.tar.gz
git-c382fdd79548a56fadf8f34d3484cf020eda3966.tar.bz2
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/choose_font.tcl')
-rw-r--r--lib/choose_font.tcl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/choose_font.tcl b/lib/choose_font.tcl
index 0c4051b..56443b0 100644
--- a/lib/choose_font.tcl
+++ b/lib/choose_font.tcl
@@ -55,6 +55,7 @@ constructor pick {path title a_family a_size} {
set w_family $w.inner.family.v
text $w_family \
-background white \
+ -foreground black \
-borderwidth 1 \
-relief sunken \
-cursor $::cursor_ptr \
@@ -92,6 +93,7 @@ constructor pick {path title a_family a_size} {
set w_example $w.example.t
text $w_example \
-background white \
+ -foreground black \
-borderwidth 1 \
-relief sunken \
-height 3 \