diff options
author | Philipp A. Hartmann <ph@sorgh.de> | 2008-03-05 16:54:22 (GMT) |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-03-06 04:47:11 (GMT) |
commit | c382fdd79548a56fadf8f34d3484cf020eda3966 (patch) | |
tree | d0cd485c434726b230e496359add74f85ee9fdb5 /lib/error.tcl | |
parent | 312fd92b069d26dce20f53e8fa4efea04b12e009 (diff) | |
download | git-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/error.tcl')
-rw-r--r-- | lib/error.tcl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/error.tcl b/lib/error.tcl index 8c27678..7565015 100644 --- a/lib/error.tcl +++ b/lib/error.tcl @@ -80,7 +80,9 @@ proc hook_failed_popup {hook msg {is_fatal 1}} { -justify left \ -font font_uibold text $w.m.t \ - -background white -borderwidth 1 \ + -background white \ + -foreground black \ + -borderwidth 1 \ -relief sunken \ -width 80 -height 10 \ -font font_diff \ |