Repository navigation
Description
Problem
Reading appearance controls stop at the format boundary. Markdown and Word share one appearance system — text size, width, and theme through the ReadingAppearancePopover wired in markdown-reader/standard-reader.tsx (docx renders through the same reader) — and PDF keeps its own separate preference store (pdf-reading-preferences.ts, key gamma-reader.pdf-reading-preferences, themes original | paper | dark). The plain-text and HTML readers have nothing: text-file-reader.tsx and html-reader.tsx contain no appearance reference at all, and the README's own support table records the asymmetry (their rows list preview and Source, no appearance).
A reader who sets a calm paper theme for an essay and then opens a .txt, .log, .json, or HTML export in the next tab gets a bright, default-styled, full-width page. The comfort setting they just expressed does not follow them, and there is no way to express it for exactly the formats — raw logs, long text dumps — that need line-length and size relief the most.
Proposal
- Give the text and HTML readers the same appearance controls the Markdown reader already has — size, width, and theme — using the existing
ReadingAppearancePopovermachinery rather than a new one. - Prefer one preference set across the text-flow formats (Markdown, Word, text, HTML): a reader's theme choice should follow them across tabs. PDF may keep its own render pipeline, but its theme should default to the shared choice rather than a separate
originalstarting point. - Theme applies to the preview surface only; the Source editor keeps its editing styling.
Goal
After this, text size, reading width, and theme set once apply to every text-flow format — a reader moving between an essay, its .txt appendix, and an HTML export sees one continuous reading appearance.
Verification
grep -q "appearance" ui-packages/web/src/features/reader/text-file-reader.tsx
grep -q "appearance" ui-packages/web/src/features/reader/html-reader.tsx
pnpm --filter @gamma-reader/web test --silent
pnpm checkRefs
- ui-packages/web/src/features/reader/text-file-reader.tsx — no appearance reference today
- ui-packages/web/src/features/reader/html-reader.tsx — no appearance reference today
- ui-packages/web/src/features/reader/markdown-reader/standard-reader.tsx:31-52 — the controls to reuse
- ui-packages/web/src/features/reader/pdf-reading-preferences.ts — separate per-format store today
- README.md "Document support" — the table records the asymmetry (appearance listed for Markdown/Word/PDF, not text/HTML)
- ui-packages/web/PRODUCT.md — "Keep reading as the largest and quietest part of the workspace"
Activity
bencode commentedon Sep 30, 2026
Independent review — posted by the scheduled issue-reviewer loop (a session separate from the one that files these issues), under the maintainer's standing instruction to evaluate, sharpen, or retire
source:scheduledproposals.Evidence audit (against
main@d28fe0b): all citations confirmed.ReadingAppearancePopover) exist only inmarkdown-reader/standard-reader.tsx:28-52;text-file-reader.tsxandhtml-reader.tsxcontain no appearance reference.gamma-reader.pdf-reading-preferences, themesoriginal | paper | dark, defaultoriginal—pdf-reading-preferences.ts:5-16).docx-reader.tsx:81rendersStandardMarkdownReader.lintpassed;verifyfails today as it should → stays open.Verdict: valid, keep open. Concrete comfort gap with a reuse-first fix (existing popover machinery), and the asymmetry is documented by the product's own table.
One sharpening note (non-blocking): the two anchors test that controls exist in both readers, but not the proposal's deeper half — one preference set following the reader across formats. Per-format duplicated controls would pass. If cross-format continuity is the point, anchor the shared store too, e.g.
grep -rq "useMarkdownReadingPreferences" ui-packages/web/src/features/reader/text-file-reader.tsx.bencode commentedon Oct 2, 2026
Not planned — discussed with the maintainer on 2026-10-01. Gamma Reader stays deliberately small: a feature lands only when no existing path covers the need. Appearance controls for plain text and HTML are a nicety; HTML documents carry their own styling, which a reader theme would fight.