Skip to content

Commit 22a713c

Browse files
Guillermo S. Romeropaulusmack
authored andcommitted
gitk: Follow themed bgcolor in help dialogs
Make Help > About & Key bindings dialogs readable if theme has changed font color to something incompatible with white. Signed-off-by: Guillermo S. Romero <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent ffbd0d7 commit 22a713c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gitk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3021,7 +3021,7 @@ proc bindall {event action} {
30213021
}
30223022

30233023
proc about {} {
3024-
global uifont NS
3024+
global bgcolor NS
30253025
set w .about
30263026
if {[winfo exists $w]} {
30273027
raise $w
@@ -3036,7 +3036,7 @@ Gitk - a commit viewer for git
30363036
Copyright \u00a9 2005-2014 Paul Mackerras
30373037
30383038
Use and redistribute under the terms of the GNU General Public License"] \
3039-
-justify center -aspect 400 -border 2 -bg white -relief groove
3039+
-justify center -aspect 400 -border 2 -bg $bgcolor -relief groove
30403040
pack $w.m -side top -fill x -padx 2 -pady 2
30413041
${NS}::button $w.ok -text [mc "Close"] -command "destroy $w" -default active
30423042
pack $w.ok -side bottom
@@ -3047,7 +3047,7 @@ Use and redistribute under the terms of the GNU General Public License"] \
30473047
}
30483048

30493049
proc keys {} {
3050-
global NS
3050+
global bgcolor NS
30513051
set w .keys
30523052
if {[winfo exists $w]} {
30533053
raise $w
@@ -3103,7 +3103,7 @@ proc keys {} {
31033103
[mc "<%s-minus> Decrease font size" $M1T]
31043104
[mc "<F5> Update"]
31053105
" \
3106-
-justify left -bg white -border 2 -relief groove
3106+
-justify left -bg $bgcolor -border 2 -relief groove
31073107
pack $w.m -side top -fill both -padx 2 -pady 2
31083108
${NS}::button $w.ok -text [mc "Close"] -command "destroy $w" -default active
31093109
bind $w <Key-Escape> [list destroy $w]

0 commit comments

Comments
 (0)