Use the application icon asset as the in-app brand mark; drop the old inline peach; smoke checks the decoded image
ci / linux-arm64-cross (push) Successful in 2m53s
ci / linux-x64 (push) Successful in 4m54s

This commit is contained in:
omar committed 2026-10-24 07:12:44 +03:00
1 parent d505890c74
commit 6b8994f1cb
4 files changed
+16 -8

No files matched your search

+1
View File
@@ -20,6 +20,7 @@
- Replaced the application icon assets with an original peach silhouette on a transparent background,
including PNG assets and a seven-size Windows ICO. The reproducible Electron export now renders the
SVG directly to an alpha-enabled canvas instead of capturing a window, avoiding captured scrollbars.
The start, error and onboarding screens show the same icon asset instead of a separate inline drawing.
- Added an English-default interface with selectable Russian, backed by shared catalogs for the renderer
and native identity dialogs. Repository-authored documentation and technical diagnostics are English;
historical captures and server-provided content remain unchanged.
+3 -4
View File
@@ -29,7 +29,6 @@
<symbol id="i-back" viewBox="0 0 24 24"><path d="M14.5 5.5L8 12l6.5 6.5"/></symbol>
<symbol id="i-moon" viewBox="0 0 24 24"><path d="M19.5 14.6A7.8 7.8 0 1 1 9.4 4.5a6.2 6.2 0 0 0 10.1 10.1z"/></symbol>
<symbol id="i-message" viewBox="0 0 24 24"><path d="M4.5 5.5h15v10.5h-9.5l-5.5 4z"/></symbol>
<symbol id="i-peach" viewBox="0 0 24 24"><path class="peach-body" d="M12 7.2c-4.6-1.6-8 1.6-8 6 0 4.6 3.6 8.3 8 8.3s8-3.7 8-8.3c0-4.4-3.4-7.6-8-6z"/><path class="peach-crease" d="M12 7.6c-1.8 2.6-2 8.6 0 13.6"/><path class="peach-leaf" d="M12.2 6.8c.2-2.6 2-4.2 5-4.3-.3 2.7-2.1 4.2-5 4.3z"/></symbol>
<symbol id="i-shield" viewBox="0 0 24 24"><path d="M12 3.5l7 2.6v5.4c0 4.3-2.9 7.6-7 9-4.1-1.4-7-4.7-7-9V6.1z"/></symbol>
<symbol id="i-record" viewBox="0 0 24 24"><circle cx="12" cy="12" r="6.5"/><circle cx="12" cy="12" r="2.5"/></symbol>
<symbol id="i-bookmark" viewBox="0 0 24 24"><path d="M7 4.5h10v15l-5-3.6-5 3.6z"/></symbol>
@@ -41,13 +40,13 @@
</svg>
<div id="boot" class="boot" role="status">
<svg class="icon brand-mark" aria-hidden="true"><use href="#i-peach"/></svg>
<img class="brand-mark" src="assets/icon.png" width="40" height="40" alt="" aria-hidden="true">
<p id="boot-text" data-i18n="ui.starting.core">Starting core…</p>
</div>
<main id="view-fatal" class="fatal" hidden>
<div class="fatal-inner">
<svg class="icon brand-mark" aria-hidden="true"><use href="#i-peach"/></svg>
<img class="brand-mark" src="assets/icon.png" width="40" height="40" alt="" aria-hidden="true">
<h1 id="fatal-title" data-i18n="ui.core.unavailable">Core unavailable</h1>
<p id="fatal-text"></p>
<ul id="fatal-list" class="fatal-list"></ul>
@@ -61,7 +60,7 @@
<main id="view-onboarding" class="onboarding" hidden>
<form id="onboarding-form" class="onboarding-form" novalidate>
<svg class="icon brand-mark brand-mark-large" aria-hidden="true"><use href="#i-peach"/></svg>
<img class="brand-mark brand-mark-large" src="assets/icon.png" width="56" height="56" alt="" aria-hidden="true">
<h1 data-i18n="ui.what.should.we.call.you">What should we call you?</h1>
<p class="lede" data-i18n="ui.everyone.on.the.server.sees.your.nickname">Everyone on the server sees your nickname. You can change it later without changing your permanent identifier (UID).</p>
<label class="field">
+2 -4
View File
@@ -109,11 +109,9 @@ p { margin: 0; }
stroke-linejoin: round;
}
.brand-mark { width: 40px; height: 40px; stroke: none; }
/* Product mark: the application icon (assets/icon.png), the single brand master. */
.brand-mark { width: 40px; height: 40px; flex: none; object-fit: contain; }
.brand-mark-large { width: 56px; height: 56px; }
.brand-mark .peach-body, .peach-body { fill: var(--peach); stroke: none; }
.peach-crease { fill: none; stroke: rgba(120, 50, 20, 0.35); stroke-width: 1.2; }
.peach-leaf { fill: #5f9e5a; stroke: none; }
/* ---------- controls ---------- */
+10
View File
@@ -67,6 +67,16 @@ try {
step('new profile: onboarding', l);
await page.screenshot({ path: path.join(out, '70-new-profile-onboarding-dark.png') });
if (!l.prefersDark) throw new Error('new profile is not dark');
// The onboarding mark is the application icon asset, actually decoded.
await page.waitForFunction(() => document.querySelector('#view-onboarding .brand-mark')?.complete);
const mark = await page.$eval('#view-onboarding .brand-mark', (img) => ({
src: new URL(img.currentSrc).pathname,
naturalWidth: img.naturalWidth,
naturalHeight: img.naturalHeight,
shownWidth: img.getBoundingClientRect().width,
}));
step('onboarding brand mark', mark);
if (mark.src !== '/assets/icon.png' || mark.naturalWidth !== 256 || mark.naturalHeight !== 256 || mark.shownWidth !== 56) throw new Error('brand mark is not the loaded app icon');
await page.fill('#onboarding-nick', 'ThemeSmoke');
await page.click('#onboarding-submit');
await page.waitForSelector('#view-app', { state: 'visible', timeout: 20000 });