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.