From: Bert Wesarg <bert.wesarg@googlemail.com>
To: git@vger.kernel.org
Cc: Bert Wesarg <bert.wesarg@googlemail.com>, paulus@ozlabs.org
Subject: [PATCH] gitk: Add horizontal scrollbar to the files list
Date: Tue, 1 Oct 2019 12:08:21 +0200 [thread overview]
Message-ID: <5c5803ac99b6aaf7ca39393422ca9aa17f0280ec.1569910203.git.bert.wesarg@googlemail.com> (raw)
Wrapping filenames is an unexpected experience in UX design. Disable
wrapping and add a horizontal scrollbar to the files list to remove this.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
---
gitk | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/gitk b/gitk
index abe4805..bf2a061 100755
--- a/gitk
+++ b/gitk
@@ -2477,13 +2477,16 @@ proc makewindow {} {
-background $bgcolor -foreground $fgcolor \
-font mainfont \
-tabs [list $indent [expr {2 * $indent}]] \
- -yscrollcommand ".bright.sb set" \
+ -xscrollcommand ".bright.sbx set" \
+ -yscrollcommand ".bright.sby set" \
-cursor [. cget -cursor] \
- -spacing1 1 -spacing3 1
+ -spacing1 1 -spacing3 1 -wrap none
lappend bglist $cflist
lappend fglist $cflist
- ${NS}::scrollbar .bright.sb -command "$cflist yview"
- pack .bright.sb -side right -fill y
+ ${NS}::scrollbar .bright.sbx -orient horizontal -command "$cflist xview"
+ ${NS}::scrollbar .bright.sby -orient vertical -command "$cflist yview"
+ pack .bright.sbx -side bottom -fill x
+ pack .bright.sby -side right -fill y
pack $cflist -side left -fill both -expand 1
$cflist tag configure highlight \
-background [$cflist cget -selectbackground]
--
2.23.0.11.g242cf7f110
next reply other threads:[~2019-10-01 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-01 10:08 Bert Wesarg [this message]
2019-10-01 15:42 ` [PATCH] gitk: Add horizontal scrollbar to the files list Marc Branchaud
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5c5803ac99b6aaf7ca39393422ca9aa17f0280ec.1569910203.git.bert.wesarg@googlemail.com \
--to=bert.wesarg@googlemail.com \
--cc=git@vger.kernel.org \
--cc=paulus@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).