···151151 // include_bytes with concat! so path is resolved from manifest dir at compile time
152152 let font_bytes = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/assets/fonts/Nunito-Regular.ttf"));
153153 let font = Font::from_bytes(font_bytes.as_ref(), fontdue::FontSettings::default()).unwrap();
154154- let font_size = 12.0;
154154+ // measure at an accessible base size (16px)
155155+ let font_size = 16.0;
155156 names
156157 .iter()
157158 .map(|s| {
···66 // Set by each window via `changed is-dark => { Theme.dark = root.is-dark; }`
77 in-out property <bool> dark: false;
8899+ // ── Font sizes (semantic tokens) ───────────────────────────────────────────
1010+ // Define semantic font sizes here so the UI can switch sizes centrally.
1111+ out property <length> font_huge: 96px; // overlay large number
1212+ out property <length> font_title: 34px; // big page titles
1313+ out property <length> font_headline: 28px; // secondary large headings
1414+ out property <length> font_header: 22px; // header / section titles
1515+ out property <length> font_medium: 14px; // medium emphasis
1616+ out property <length> font_body: 13px; // body text / inputs
1717+ out property <length> font_label: 12px; // labels, chips, buttons
1818+ out property <length> font_caption: 12.5px; // small captions
1919+ out property <length> font_xsmall: 11.5px; // tiny helper text
2020+ out property <length> font_xxsmall: 11px; // extra small
2121+2222+923 // ── Window background ─────────────────────────────────────────────────────
1024 // Light: warm cream / Dark: gentle dark blue (desaturated, not tech-stark)
1125 out property <color> bg: self.dark ? #1A1D2B : #F3EFE7;
+3-3
ui/views/about_tab.slint
···6565 Text {
6666 text: "ioma";
6767 font-family: "Shippori Mincho";
6868- font-size: 34px;
6868+ font-size: Theme.font_title;
6969 color: Theme.ink;
7070 horizontal-alignment: center;
7171 }
···74747575 Text {
7676 text: "v0.4.2 · the space between";
7777- font-size: 12px;
7777+ font-size: Theme.font_label;
7878 color: Theme.ink-mid;
7979 horizontal-alignment: center;
8080 }
···83838484 Text {
8585 text: "間 (ma) is the Japanese notion of the pause between —\nthe rest in music, the silence between words.\nioma gives that pause back to your eyes and body.";
8686- font-size: 12.5px;
8686+ font-size: Theme.font_caption;
8787 color: Theme.ink-mid;
8888 horizontal-alignment: center;
8989 vertical-alignment: center;