Thin frosted Aero glass, boot-theme fix, latest background revision
The white surfaces were reading as a milky white panel (a card top was ~71% white). The frosted recipes now use a 14% base veil plus the gloss over the pre-blurred wallpaper, small chrome (rows, chips, segments, buttons) keeps a touch more veil, and nothing nested inside a sheet or dialog uses the viewport-aligned layer (it showed the raw dark water under the settings theme labels at 1.5:1 — nested chrome falls back to the flat fills over the genuinely blurred sheet). The first-load text bug was the boot script: its dark test was `s && !a ? s === 'dark' : matchMedia(...)`, which for a stored aero fell through to the OS preference, so a dark-preferring machine loaded with both `dark` and `aero` classes and every `.dark` rule painted over the wallpaper until a theme toggle re-applied the classes. The stored value now decides alone; a dark-colorScheme check pins it in the mobile suite (123 checks). Background: the user's latest Gemini scene (1280x714) re-encoded to public/aero/background.webp (206 kB) with a fresh pre-blurred sibling. Contrast: 0 below-minimum findings, 0 axe violations, all three themes. Version 0.3.1, SW -> freezmo-v62.
This commit is contained in:
parent
857e6445ae
commit
c88ad2865a
9 changed files with 122 additions and 38 deletions
|
|
@ -287,6 +287,22 @@ const AXE = axeSource();
|
|||
await context.close();
|
||||
}
|
||||
|
||||
/* 6c. a dark OS preference must not leak the dark palette into Aero ------ */
|
||||
{
|
||||
const { context, page } = await makePage(browser, { width: 390, height: 844, colorScheme: "dark" });
|
||||
await seed(page, { decks: [DECK], theme: "aero" });
|
||||
await page.goto(BASE, { waitUntil: "networkidle" });
|
||||
await page.waitForTimeout(1000);
|
||||
const state = await page.evaluate(() => ({
|
||||
aero: document.documentElement.classList.contains("aero"),
|
||||
dark: document.documentElement.classList.contains("dark"),
|
||||
bodyColor: getComputedStyle(document.body).color,
|
||||
}));
|
||||
check("theme: aero on a dark OS keeps the dark class off", state.aero && !state.dark);
|
||||
check("theme: boot paints the aero body text", state.bodyColor === "rgb(5, 32, 58)", state.bodyColor);
|
||||
await context.close();
|
||||
}
|
||||
|
||||
async function audit(label, { width = 390, locale, theme, openSettingsNow }) {
|
||||
const { context, page } = await makePage(browser, { width, height: width >= 1280 ? 900 : 800, deviceScaleFactor: width >= 1280 ? 1 : 2 });
|
||||
await seed(page, { locale, theme, decks: [DECK] });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue