diff options
author | Philipp A. Hartmann <ph@sorgh.de> | 2008-03-05 17:54:22 +0100 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-03-05 23:47:11 -0500 |
commit | c382fdd79548a56fadf8f34d3484cf020eda3966 (patch) | |
tree | d0cd485c434726b230e496359add74f85ee9fdb5 /lib/choose_font.tcl | |
parent | 312fd92b069d26dce20f53e8fa4efea04b12e009 (diff) | |
download | git-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/choose_font.tcl')
-rw-r--r-- | lib/choose_font.tcl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/choose_font.tcl b/lib/choose_font.tcl index 0c4051b37..56443b042 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 \ |