Skip to main content

geometry_css

Function geometry_css 

Source
pub fn geometry_css(path: impl AsRef<Path>, explicit_touch: Option<&str>)
Expand description

Write makeover-geometry’s spacing layer, with its canonical density selection, to path.

The policy is the crate’s, not this one’s: touch hangs off the negation of a fine, hovering pointer because density is a capability rather than a device or a width, and explicit_touch names a selector an app sets when the user has chosen. See makeover_geometry::density_css. All this adds is the generated-file banner and the write.

Both spacing axes land here, in the order the crate defines them. makeover_geometry::size_class_css follows the density block because it is the narrower claim: density says what is pointing at the screen, size class says how much screen there is, and on a compact window the two shells tighten regardless of which density selected them.

makeover_geometry::compactness_css closes the file, unlayered: row packing is a reader’s choice, not a capability or a width, so its override must beat the --row-block default the density block wrote.

§Panics

If the file cannot be written.