Skip to main content

dump/
dump.rs

1//! Print the geometry layer as an app would bake it in at build time, then
2//! the same vocabulary resolved for a terminal.
3
4use makeover_geometry::{Density, Gap, Surface, gap_css_overrides, geometry_css_vars};
5
6fn main() {
7    print!("{}", geometry_css_vars(Density::Pointer));
8    println!();
9    print!("{}", gap_css_overrides(".ui-mode-mobile", Density::Touch));
10
11    println!("\n/* the same relationships on a terminal, in cells */");
12    let t = Surface::terminal();
13    for gap in Gap::all() {
14        println!(
15            "/*   {:<8} {} */",
16            gap.token().trim_start_matches("gap-"),
17            t.gap(gap, Density::Pointer)
18        );
19    }
20}