summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2010-03-12 18:31:47 (GMT)
committerPaul Mackerras <paulus@samba.org>2010-03-20 09:53:21 (GMT)
commit2e58c944cdaf63a23ebd35c43d31e639e1e23d9f (patch)
tree1c86f306739833d56a13bd5ed8b3996fd0dd1a8f
parent5d11f794de3c1a5cd592af008a369a90fa30d2e9 (diff)
downloadgit-2e58c944cdaf63a23ebd35c43d31e639e1e23d9f.zip
git-2e58c944cdaf63a23ebd35c43d31e639e1e23d9f.tar.gz
git-2e58c944cdaf63a23ebd35c43d31e639e1e23d9f.tar.bz2
gitk: Avoid calling tk_setPalette on Windows
This just messes up the system colors. Leave them alone. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitk b/gitk
index 8a4f727..ba91bba 100755
--- a/gitk
+++ b/gitk
@@ -10847,6 +10847,7 @@ proc setselbg {c} {
# radiobuttons look bad. This chooses white for selectColor if the
# background color is light, or black if it is dark.
proc setui {c} {
+ if {[tk windowingsystem] eq "win32"} { return }
set bg [winfo rgb . $c]
set selc black
if {[lindex $bg 0] + 1.5 * [lindex $bg 1] + 0.5 * [lindex $bg 2] > 100000} {