Skip to content

feat(nsgo): draw the client in the Frostyard themes - #278

Merged
bketelsen merged 1 commit into
mainfrom
feat/nsgo-frostyard-theme
Nov 24, 2026
Merged

bketelsen merged 1 commit into
mainfrom
feat/nsgo-frostyard-theme

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

The NSGo client draws the Frostyard themes. It is Frostnotes' part of Phase 1 of the plan for one look across the three NSGo apps (frostyard/frostmail, plan 0016); FrostMail's part is frostyard/frostmail#395. Until now the client drew NSGo's gray and blue. Nothing of the window's layout changes.

  • The themes. root calls the kit's Apply and returns its Frame (feat(workspaceui): add the Frostyard themes, Inter and the appearance choice frostui#72, workspaceui/v0.2.0): Frostyard on a dark desktop and Frostyard light on a light one, set in the bundled Inter.
  • A choice of appearance. The Manage vaults dialog has a row of System, Light or Dark (the kit's segmented control), kept in the device's storage. That dialog already holds the client's other device setting, its button shows in every state, and it exists only in the native build. On the web, Lodge sets the appearance, and the client reads and writes nothing.
  • A fix that comes with the kit. A narrow window in the dark appearance is readable: the compact shell paints its ground (dark-narrow-note.png, before and after).
  • The pictures. The 19 kept pictures are made again in the new look and 3 are added in Frostyard (the live preview, a dialog and the vault manager): 17 light and 5 dark. Compare them with the ones in main to read the change.

Risk tier

Risk tier: 2 — the client's look changes, and 1 key of its own storage (appearance) is read and written on a desktop. No path of .github/risk-paths.json is matched.

cmd/frostnotes-nsgo/go.mod takes the kit from v0.1.0 to v0.2.0, which adds no requirement; packaging/flatpak/go-sources.json follows (make flatpak-sources).

Docs housekeeping

  • Cross-links added in both directions (ADR ↔ design ↔ spec ↔ plan)
  • Conformance aliases and canonical symlinks are unchanged; canonical targets are edited instead

docs/design/app.md has the look, the choice of appearance and the new picture list; AGENTS.md names the client's module requirements.

Verification

  • make check green (host, exit 0)
  • make nsgo-check green (host), the js/wasm build included
  • make nsgo-live green (host, Xvfb's X11), run by two sessions: 15 passed, 0 failed, 0 skipped (6 workflows, 9 tours)
  • make flatpak-sources run, for a change to go.mod or go.sum
  • New tests: TestAppearanceChoiceIsKept (Dark shows at once and is kept; System removes the kept choice) and TestKeptAppearanceShowsAtStart, which fails with the restore turned off.
  • Looked at: the 22 pictures. Colors read from their pixels are the themes' (light: navigation #e8f0f6, ground #f5f9fc, accent #0b6ea6; dark: #081b2d, #06111d, #47b8ef). The text is the bundled Inter: with the host's own Inter hidden the pictures were byte-identical, and with the registration also removed the text was Noto Sans.
  • Not checked: the web build's look in a browser or in Lodge, macOS, the Flatpak build, and a restart of the installed app (the kept choice is tested through the test host's storage).

Seen in the pictures and left for the plan's later phases, since this change only turns the theme on: dialog and palette panels let the view under them show through, and take the ground's color, not the panel's; every button is the filled one, Cancel included; a chosen row is a neutral gray.

Take frostui's workspaceui v0.2.0. The client's root calls
workspaceui.Apply, which sets the Frostyard and Frostyard light themes and
registers the kit's bundled Inter, and the window's root view is
workspaceui.Frame.

On a desktop the vault manager has an Appearance row, the kit's System,
Light and Dark choice. The client keeps the choice in its storage under
"appearance" and shows it again at the next start. The Lodge build has no
such row: Lodge sets its appearance.

Retake the 19 kept pictures in the new look and add 3 dark ones (live
preview, the move dialog, the vault manager). The kit's compact shell now
paints its ground, so dark-narrow-note.png is readable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant