Skip to content

Draw the reference-pitch stepper in the design file and the README screenshot - #10

Merged
AndrianLeah merged 2 commits into
masterfrom
claude/epic-spence-879aa3
Dec 1, 2026
Merged

AndrianLeah merged 2 commits into
masterfrom
claude/epic-spence-879aa3

Conversation

@AndrianLeah

Copy link
Copy Markdown
Owner

PR #9 added the reference-pitch setting with a new UiStepper and the minus/plus icons written straight into code. This brings the design file, the Foundations boards and the README screenshot up to date. Nothing in src/ changes.

Design file (mockup/string-tuner-liquid-glass.figcraft)

  • Stepper, the file's first component: the set stepper, variants State=Default / Hover / Pressed / Focus / Disabled, in a new Stepper row of the states matrix on Foundations, under Segmento. The dark board holds the main set; the light board uses instances.
    • − and + around the value in the segmented control's grey track: fill/secondary, padding and gap space/1, track size/control-lg (52), buttons size/control-md (44) with radius/capsule, icons in text/secondary, the value in text/primary, 16 Bold.
    • States: hover and pressed veils on + (state/hover, state/pressed; pressed swells like the other rows), focus as the 3 pt accent ring on the value, disabled as − at 40 % at the 436 Hz bound.
    • The matrix cells are 160 pt wide like the other rows, so the samples read "440 Hz"; the sheets show "A4 = 440 Hz".
  • Icons: icon/minus and icon/plus, drawn on the 24 px grid like icon/x (M6 12h12, M12 6v12M6 12h12, stroke 2, round caps) and scaled to 20 in the stepper, as UiIcon draws them there. The file has no separate icon board (every icon is a vector where it is used), so they live in the stepper.
  • Settings sheet (settings-dark-phone-portrait, settings-light-phone-portrait): a third section, REFERENCE PITCH, with a stepper instance at "A4 = 440 Hz". The sheet grows by 92 pt upwards and keeps its bottom edge.
  • Only the file's own variables: no new colours, sizes, styles or variables, so mockup/tokens/ stays as it is.
  • mockup/README.md describes the new row, the component, the stepper's disabled state and the sheet.

Foundations PNGs

mockup/png/foundations-dark.png and foundations-light.png are exported again at 1x: 1440 × 2983 (was 2892), for the new row and a second line in the note under the matrix. Before editing, a re-export of the untouched file matched the committed PNGs apart from about 1,000 anti-aliased pixels, so the rest of the boards is unchanged.

README screenshot (docs/screenshots/sheets.webp)

The script behind PR #6 is not in the repository, so the picture was made again from that PR's description and from the old image:

  • the production build served by vite preview, headless Chrome at 390 × 844 at 2x, with getUserMedia answered by an oscillator taken through E2, A2 and D3 (each confirmed) to a flat G3;
  • the same composition: resonance-dark.jpg under a 45 % veil of bg-base, screens at 0.9x in a 10 px bezel at the same places, 1100 × 920, encoded by Chrome as WebP at quality 90 (44 KB, was 43 KB, same colour profile).

The left phone did not change, and it matches the old image to within WebP noise (mean difference 2/255).

The tunings sheet and the settings sheet with the reference pitch

Checks

  • The saved file opens again with no repairs. Compared node by node with master's file, only the two sheets, the two states sections (matrix, the Riga lista row moved down, the note) and 121 new layers differ.
  • FigCraft's design audit on the new layers reports only what the rest of the file already has (the 999 capsule radius, font sizes not bound to variables).
  • Nunito was not installed for FigCraft on this machine. The exports use the app's own @fontsource-variable/nunito file, converted from WOFF2 to TTF, so they render like the committed ones; nothing was downloaded.

The stepper and its minus and plus icons went straight into code in
PR #9; the FigCraft file now has them too.

- Foundations: a Stepper row in the states matrix, under Segmento. The
  dark board holds the component set `stepper` (State=Default, Hover,
  Pressed, Focus, Disabled), the light board uses instances of it.
  − and + around the value in the segmented control's grey track:
  fill/secondary, space/1, 44 pt round buttons, the value in
  text/primary, 16 Bold. Hover and pressed veils on +, the 3 pt accent
  ring on the value, − at 40 % at the 436 Hz bound.
- Icons: icon/minus and icon/plus, drawn on the 24 px grid like icon/x
  (M6 12h12 and M12 6v12 M6 12h12, stroke 2) and scaled to 20 in the
  stepper, as the app draws them.
- Settings sheet, Dark and Light pages: a third section, REFERENCE
  PITCH, with the stepper at "A4 = 440 Hz". The sheet grows by 92 pt
  and keeps its bottom edge.
- The Foundations PNGs are exported again at 1x, and mockup/README.md
  describes the new row, the component and the sheet.

Only the file's own variables are used: no new colours or sizes.
docs/screenshots/sheets.webp showed the settings sheet before the
reference-pitch section. It is made again the way PR #6 made it: the
production build in headless Chrome (390 x 844 at 2x), with an
oscillator in place of the microphone.

- Left phone, dark: the list of tunings, as before.
- Right phone, light: Settings with Theme, Language and Reference pitch
  ("A4 = 440 Hz"), over a tuner that has confirmed E2, A2 and D3 and
  hears G3 flat.

Same composition as before: the dark resonance background under a 45 %
veil of bg-base, the screens at 0.9x in a 10 px bezel at the same
places, 1100 x 920, encoded by Chrome as WebP (44 KB).
@AndrianLeah
AndrianLeah merged commit c7278c5 into master Dec 1, 2026
1 check passed
@AndrianLeah
AndrianLeah deleted the claude/epic-spence-879aa3 branch December 1, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant