Expand description
Pure geometry for journey’s two screens.
The generic Shell places each child by calling
one of these functions with the container bounds, so the browse (gitk) and
commit (git-gui) layouts are simply two sets of rectangles.
Constants§
- BROWSE_
PAD - Slight breathing room around — and between — the three browse panes (history, files, diff), so they don’t run into each other or the window edge.
- FILES_W
- Width of the changed-files pane on the lower left.
- HISTORY_
FRAC - Fraction of the content height given to the history pane.
- MENU_H
- Height of the menu bar (shared by both screens).
- NARROW_
W - At or below this logical window width the left pane (the browse files list and the commit file lists) is capped at a third of the width, so the diff and the other right-hand panes keep the lion’s share of a cramped window.
- TOOLBAR_
H - Height of the search toolbar below the menu.
Functions§
- browse_
diff - browse_
files - browse_
history - browse_
menu - browse_
toolbar - commit_
amend - commit_
commit_ btn - commit_
diff - commit_
diff_ label - commit_
editor - commit_
menu - commit_
msg_ label - commit_
rescan_ btn - commit_
stage_ btn - commit_
staged_ label - commit_
staged_ list - commit_
unstage_ btn - commit_
unstaged_ label - commit_
unstaged_ list - review_
branches - review_
diff - review_
files - review_
menu