git-gui: Use borders on text fields in branch dialog.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 08:13:13 +0000 (03:13 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 08:13:13 +0000 (03:13 -0500)
On Mac OS X wish does not draw borders around text fields, making the
field look like its not even there until the user focuses into it. I
don't know the Mac OS X UI standards very well, but that just seems
wrong.  Other applications (e.g. Terminal.app) show their input boxes
with a sunken relief, so we should do the same.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh

index c187e9bbc2cc2a0f3beda3982798101130b027eb..26b1f346fce866f0a87ced04dbacf464f2e4ff92 100755 (executable)
@@ -1753,6 +1753,8 @@ proc do_create_branch {} {
                -font font_ui
        label $w.name.l -text {Name:} -font font_ui
        text $w.name.t \
+               -borderwidth 1 \
+               -relief sunken \
                -height 1 \
                -width 40 \
                -font font_ui
@@ -1812,6 +1814,8 @@ proc do_create_branch {} {
                -variable create_branch_revtype \
                -font font_ui
        text $w.from.exp.t \
+               -borderwidth 1 \
+               -relief sunken \
                -height 1 \
                -width 50 \
                -font font_ui