Skip to content

Commit 2e58c94

Browse files
patthoytspaulusmack
authored andcommitted
gitk: Avoid calling tk_setPalette on Windows
This just messes up the system colors. Leave them alone. Signed-off-by: Pat Thoyts <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 5d11f79 commit 2e58c94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gitk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10847,6 +10847,7 @@ proc setselbg {c} {
1084710847
# radiobuttons look bad. This chooses white for selectColor if the
1084810848
# background color is light, or black if it is dark.
1084910849
proc setui {c} {
10850+
if {[tk windowingsystem] eq "win32"} { return }
1085010851
set bg [winfo rgb . $c]
1085110852
set selc black
1085210853
if {[lindex $bg 0] + 1.5 * [lindex $bg 1] + 0.5 * [lindex $bg 2] > 100000} {

0 commit comments

Comments
 (0)