Skip to content

Commit abe9230

Browse files
committed
gitk: do not set fg/bg color scheme for themed Tk
Ignore the uicolor preference not just for win32, but also whenever themed Tk is used. On themed Tk it was frequently only changing the background of only a few select widgets rather than everything - and the default uicolor was frequently not the background color that themed Tk used for its widgets, resulting in a messy looking UI (mostly light gray, with random widgets surrounded by darker gray borders) Signed-off-by: Christoph Sommer <[email protected]>
1 parent 59a6d88 commit abe9230

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gitk-git/gitk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11991,6 +11991,12 @@ proc setselbg {c} {
1199111991
# radiobuttons look bad. This chooses white for selectColor if the
1199211992
# background color is light, or black if it is dark.
1199311993
proc setui {c} {
11994+
global use_ttk
11995+
11996+
if {$use_ttk} {
11997+
return
11998+
}
11999+
1199412000
if {[tk windowingsystem] eq "win32"} { return }
1199512001
set bg [winfo rgb . $c]
1199612002
set selc black

0 commit comments

Comments
 (0)