[PATCH] gitk: use user-configured background in view definition dialog
Have the text fields in the view definition dialog (View->New view...) use the background color as configured through the preferences, instead of hard-coded 'white'. This was suggested by Paul Wise through http://bugs.debian.org/457124 Signed-off-by: Gerrit Pape <pape@smarden.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Gerrit Pape committed
Jan 9, 2008 at 14:19 UTC
f0c842681936ffd684aac3f0d8340c99780d5b53
1 file changed
+3
-3
gitk
+3
-3
@@ -1875,7 +1875,7 @@ proc editview {} {
1875
}
1876
1877
proc vieweditor {top n title} {
1878
- global newviewname newviewperm viewfiles
1878
+ global newviewname newviewperm viewfiles bgcolor
1879
1880
toplevel $top
1881
wm title $top $title
@@ -1889,12 +1889,12 @@ proc vieweditor {top n title} {
1889
-text [mc "Commits to include (arguments to git rev-list):"]
1890
grid $top.al - -sticky w -pady 5
1891
entry $top.args -width 50 -textvariable newviewargs($n) \
1892
- -background white
1892
+ -background $bgcolor
1893
grid $top.args - -sticky ew -padx 5
1894
message $top.l -aspect 1000 \
1895
-text [mc "Enter files and directories to include, one per line:"]
1896
grid $top.l - -sticky w
1897
- text $top.t -width 40 -height 10 -background white -font uifont
1897
+ text $top.t -width 40 -height 10 -background $bgcolor -font uifont
1898
if {[info exists viewfiles($n)]} {
1899
foreach f $viewfiles($n) {
1900
$top.t insert end $f