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>
Pat Thoyts committed
Mar 12, 2010 at 18:31 UTC
2e58c944cdaf63a23ebd35c43d31e639e1e23d9f
1 file changed
+1
gitk
+1
@@ -10847,6 +10847,7 @@ proc setselbg {c} {
10847
# radiobuttons look bad. This chooses white for selectColor if the
10848
# background color is light, or black if it is dark.
10849
proc setui {c} {
10850
+ if {[tk windowingsystem] eq "win32"} { return }
10851
set bg [winfo rgb . $c]
10852
set selc black
10853
if {[lindex $bg 0] + 1.5 * [lindex $bg 1] + 0.5 * [lindex $bg 2] > 100000} {