Redesign the character palettes from the reference cards
Phase 5a-4. The owner chose candidate B of each palette. - Harvest Moon uses copper from Holo's tail as the accent, cream from the tail tip, and red-brown surfaces. - Crimson Pilot uses plugsuit red as the accent, orange hair, blue eyes, and the yellow dress. Borders are a low-chroma wine. Error is a light rose red, so it differs from the accent. - Silver Serpent uses silver from the grey eyes as the accent, Slytherin emerald as the second accent, and charcoal surfaces. - All eight built-in palettes pass every readability rule. The known-failure list in contrast.spec.ts is gone. - characterPalettes.spec.ts measures text selection as the app draws it, at most 65% opaque over the page (UI-029). - Docs: UI-045, and the character references in ui-color.md. pnpm check passes. pnpm test: 446 of 446 pass. Full smoke suite: 95 passed, 2 known.
This commit is contained in:
@@ -132,7 +132,7 @@ await runSmoke('appearance/characterThemes', async ({ browser }) => {
|
||||
assert.equal(selectedRow.selected, 'true');
|
||||
assert.equal(selectedRow.selection, applied.selection, 'File selection uses the same warm selection color');
|
||||
// Selection fills use the capped a6 (0.65) alpha (src/lib/theme/appearance.ts:197-203).
|
||||
const warmFill = 'rgba(72, 39, 20, 0.65)';
|
||||
const warmFill = 'rgba(82, 40, 20, 0.65)';
|
||||
assert.equal(selectedRow.fill, warmFill, 'The selected file paints the warm fill');
|
||||
await main.screenshot({ path: path.join(output, `${theme}-${mode}-file-selection.png`) });
|
||||
await main.getByRole('textbox', { name: 'Writing editor', exact: true }).evaluate(node => {
|
||||
|
||||
@@ -34,7 +34,7 @@ await runSmoke(name, async ({ page }) => {
|
||||
// A short schema 3 file takes the missing colors and fonts from its base theme. An earlier theme ID names the base.
|
||||
await importTheme({ schema: 3, id: "short", name: "Short theme", mode: "dark", base: "holo", colors: { accent: "#00c8ff" } });
|
||||
await page.waitForFunction(() => document.documentElement.dataset.palette === "custom:short");
|
||||
assert.deepEqual([await background(), await token("accent"), await token("link"), await token("syntax-keyword")], ["#251b17", "#00c8ff", "#00c8ff", "#ff6740"]);
|
||||
assert.deepEqual([await background(), await token("accent"), await token("link"), await token("syntax-keyword")], ["#1c0f0a", "#00c8ff", "#00c8ff", "#f38c48"]);
|
||||
assert.match(await token("font-ui"), /Candara/);
|
||||
assert.equal(await page.evaluate(() => document.documentElement.dataset.theme), "dark");
|
||||
await page.screenshot({ path: path.join(output, "custom-theme-short.png") });
|
||||
|
||||
Reference in New Issue
Block a user