Skip to main content

Module density

Module density 

Expand description

Density as a token mode (docs/design-language.md, “Space and density”).

A window, or one region of it (a sidebar, a table, a list of files), runs at Density::Comfortable or Density::Compact. Compact scales the spacing rhythm by Density::COMPACT_RHYTHM and shortens rows to 28 / 44 / 52; control heights and the text size stay, so a compact region still has the same pointer targets and reads at the same size. An app chooses compact for a data-heavy region (Monitor’s process list, the Files list view, a table) with crate::Theme::with_density; it never crams by hand.

Structs§

RowHeights
The heights of the three kinds of list row, in logical pixels at 1×.

Enums§

Density
How tightly a window or region packs its rows and gaps.