зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
5d11f794de
Коммит
2e58c944cd
1
gitk
1
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} {
|
||||
|
|
Загрузка…
Ссылка в новой задаче