From c382fdd79548a56fadf8f34d3484cf020eda3966 Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Wed, 5 Mar 2008 17:54:22 +0100 Subject: 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 Signed-off-by: Shawn O. Pearce --- lib/error.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/error.tcl') diff --git a/lib/error.tcl b/lib/error.tcl index 8c27678e3a..75650157e5 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 \ -- cgit v1.3