Skip to main content

Module layout

Module layout 

Source
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