1# Styles and themes
2
3`onenote/` is OneNote 2010 applying its own Styles gallery in the lab (2026-09-30):
4`Styles.one` holds a page with each of the eleven styles applied (Ctrl+Alt+1 to 6 and the
5gallery), Enter after each, a style over explicit formatting, Clear Formatting, and a second
6page whose styles were made through COM in Georgia, onto which OneNote added its own `h1`
7and into which a pasted Georgia heading brought its own; `applied.xml` is the first page's
8COM read. Applying a style stores a paragraph style object per style per page and clears
9the paragraph's explicit character formatting; headings carry NextStyle `p`.
10
11`candidate/` is the notebook `themed_pages_hold_their_theme_under_onenote_s_names` in
12`crates/snowbound/src/themes.rs` writes: a section per built-in theme (OneNote, Manuscript,
13Editorial, Modern), each a page with a paragraph in every gallery style applied through the
14editor, then restyled as opening the page does, and `.snowbound/themes.json` giving each
15section its theme. `cold/` is `tools/native_styles.py` in a fresh OneNote 2010 clone: every
16page draws in its theme (`read/page-00N.png`) and lists the eleven styles under OneNote's
17names with the theme's values, and no `.snowbound` section group appears.
18
19`onenote-edit/` is OneNote 2010 editing the Manuscript page of `candidate/` in the lab:
20Ctrl+Alt+2 on the Normal paragraph and Enter after it, and Enter after the theme's Heading
215. OneNote applies its own `h2` and `p` beside the theme's (`Manuscript.png`); reopened in
22Snowbound they read under those names and restyling heals them
23(`styles_onenote_adds_to_a_themed_page_are_healed`).
24
25`tools/test_styles.py` checks this without a VM. Regenerate with `SNOWBOUND_STYLES_EXPORT`
26set to a new absolute directory while running the test, then `tools/native_styles.py OUTPUT
27COLD`.