Expand description
Responsive layout: pure functions mapping window size + stored pane sizes to the sizes actually rendered. Stored sizes are never modified.
Structs§
- Commit
Columns - Commit-log column sizes for a given pane width.
- Layout
Dims - Pane sizes to render.
Enums§
- Breakpoint
- Coarse window-width class.
Constants§
- AUTHOR_
COLUMN_ PX - Fixed width of the author sub-column in the commit log.
- COMMIT_
MAX_ FRAC - Max commit-log share of width remaining after the sidebar.
- COMMIT_
MIN_ WIDTH - Narrowest commit log we ever render.
- COMPACT_
WIDTH - Below this width toolbars switch to icon-only buttons.
- DIFF_
LIST_ MAX_ FRAC - Max share of the diff pane taken by its file list.
- DIFF_
MIN_ WIDTH - Width reserved for the diff viewer, however small the window.
- DIVIDER_
W - Width of a vertical divider.
- MINIMAL_
WIDTH - Below this width secondary toolbar widgets (editor picker, version) go away.
- NARROW_
WIDTH - Below this window width the sidebar is hidden (or floated as an overlay).
- SHORT_
HEIGHT - Windows shorter than this use
STAGING_MAX_FRAC_SHORT. - SHOW_
AUTHOR_ FROM - Commit-log width from which the author column is shown.
- SHOW_
TIME_ FROM - Commit-log width from which the date column is shown.
- SIDEBAR_
MAX_ FRAC - Max sidebar share of window width.
- STAGING_
MAX_ FRAC - Max staging-area share of window height.
- STAGING_
MAX_ FRAC_ SHORT - Max staging share on short windows, so the commit log keeps room.
- STAGING_
MIN - Smallest useful staging height.
- TIME_
COLUMN_ PX - Fixed width of the date sub-column in the commit log.
- TINY_
WIDTH - Below this width even the theme picker is dropped.
Functions§
- clamp_
dialog - Clamp a dialog dimension so it fits the window with a margin.