Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 <gsromero@infernal-iceberg.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Guillermo S. Romero authored and Paul Mackerras committed Mar 19, 2016
1 parent ffbd0d7 commit 22a713c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gitk
Expand Up @@ -3021,7 +3021,7 @@ proc bindall {event action} {
}

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

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

0 comments on commit 22a713c

Please sign in to comment.