Skip to content

Commit f0c8426

Browse files
g-papepaulusmack
authored andcommitted
[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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 9e8ad09 commit f0c8426

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gitk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,7 @@ proc editview {} {
18751875
}
18761876

18771877
proc vieweditor {top n title} {
1878-
global newviewname newviewperm viewfiles
1878+
global newviewname newviewperm viewfiles bgcolor
18791879

18801880
toplevel $top
18811881
wm title $top $title
@@ -1889,12 +1889,12 @@ proc vieweditor {top n title} {
18891889
-text [mc "Commits to include (arguments to git rev-list):"]
18901890
grid $top.al - -sticky w -pady 5
18911891
entry $top.args -width 50 -textvariable newviewargs($n) \
1892-
-background white
1892+
-background $bgcolor
18931893
grid $top.args - -sticky ew -padx 5
18941894
message $top.l -aspect 1000 \
18951895
-text [mc "Enter files and directories to include, one per line:"]
18961896
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
18981898
if {[info exists viewfiles($n)]} {
18991899
foreach f $viewfiles($n) {
19001900
$top.t insert end $f

0 commit comments

Comments
 (0)