Skip to content

Commit 1924d1b

Browse files
patthoytspaulusmack
authored andcommitted
gitk: Default to the system colours on Windows
Also convert a button to use the themed widget set. Signed-off-by: Pat Thoyts <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 7a0ebbf commit 1924d1b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

gitk

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10732,7 +10732,7 @@ proc doprefs {} {
1073210732
${NS}::label $top.cdisp -text [mc "Colors: press to choose"]
1073310733
grid $top.cdisp - -sticky w -pady 10
1073410734
label $top.ui -padx 40 -relief sunk -background $uicolor
10735-
button $top.uibut -text [mc "Interface"] -font optionfont \
10735+
${NS}::button $top.uibut -text [mc "Interface"] \
1073610736
-command [list choosecolor uicolor {} $top.ui [mc "interface"] setui]
1073710737
grid x $top.uibut $top.ui -sticky w
1073810738
label $top.bg -padx 40 -relief sunk -background $bgcolor
@@ -11350,13 +11350,20 @@ if {[tk windowingsystem] eq "aqua"} {
1135011350
}
1135111351

1135211352
set colors {green red blue magenta darkgrey brown orange}
11353-
set uicolor grey85
11354-
set bgcolor white
11355-
set fgcolor black
11353+
if {[tk windowingsystem] eq "win32"} {
11354+
set uicolor SystemButtonFace
11355+
set bgcolor SystemWindow
11356+
set fgcolor SystemButtonText
11357+
set selectbgcolor SystemHighlight
11358+
} else {
11359+
set uicolor grey85
11360+
set bgcolor white
11361+
set fgcolor black
11362+
set selectbgcolor gray85
11363+
}
1135611364
set diffcolors {red "#00a000" blue}
1135711365
set diffcontext 3
1135811366
set ignorespace 0
11359-
set selectbgcolor gray85
1136011367
set markbgcolor "#e0e0ff"
1136111368

1136211369
set circlecolors {white blue gray blue blue}

0 commit comments

Comments
 (0)