Skip to content

Commit fe2005e

Browse files
committed
gitk: make sha1but a ttk::button
gitk's 'Commit ID' button uses a classic widget, not a themed one, leading to inconsistent style. Commit 51a7e8b (d93f171 ("gitk: Use themed tk widgets", 2009-04-17) that added themed widgets did not touch this particular widget, but does not say why. Regardless, let's use a themed button to be consistent with the rest of the interface. Signed-off-by: Mark Levedahl <[email protected]>
1 parent 811b8a3 commit fe2005e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gitk

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2495,9 +2495,8 @@ proc makewindow {} {
24952495
set sha1entry .tf.bar.sha1
24962496
set entries $sha1entry
24972497
set sha1but .tf.bar.sha1label
2498-
button $sha1but -text "[mc "Commit ID:"] " -state disabled -relief flat \
2498+
ttk::button $sha1but -text "[mc "Commit ID:"] " -state disabled \
24992499
-command gotocommit -width 8
2500-
$sha1but conf -disabledforeground [$sha1but cget -foreground]
25012500
pack .tf.bar.sha1label -side left
25022501
ttk::entry $sha1entry -width $hashlength -font textfont -textvariable sha1string
25032502
trace add variable sha1string write sha1change
@@ -8910,9 +8909,9 @@ proc sha1change {n1 n2 op} {
89108909
}
89118910
if {[$sha1but cget -state] == $state} return
89128911
if {$state == "normal"} {
8913-
$sha1but conf -state normal -relief raised -text "[mc "Goto:"] "
8912+
$sha1but conf -state normal -text "[mc "Goto:"] "
89148913
} else {
8915-
$sha1but conf -state disabled -relief flat -text "[mc "Commit ID:"] "
8914+
$sha1but conf -state disabled -text "[mc "Commit ID:"] "
89168915
}
89178916
}
89188917

0 commit comments

Comments
 (0)