Mail-logo als vooraf samengestelde witte badge (geen grijze plaat); succes-toast bij rolwijziging

- themes/asf/logo-mail.png (+ make-mail-logo.py), geleverd als /admin/brand-logo-mail.png; ASF Email:LogoUrl wijst ernaar
- Renderer: plaat weggehaald, licht logo 56px, dark-swap naar LogoDarkUrl blijft
- UsersPage: toast na geslaagde rolwijziging (nl+en, ook Owner-bevestiging)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 16:11:33 +01:00
co-authored by Claude Sonnet 5.5
parent 07bad14453
commit a9b9ad2931
13 changed files with 107 additions and 22 deletions
+2 -1
View File
@@ -16,12 +16,13 @@ function themeFor(mode: string) {
* Per-site favicon (VITE_THEME): the page links the theme favicon instead of the default one.
* Build emits it as an asset; the dev server serves it from the theme folder.
*/
function themeFavicon(faviconPath: string | null, logo: { onLight: string; onDark: string } | null): Plugin {
function themeFavicon(faviconPath: string | null, logo: { onLight: string; onDark: string; mail: string | null } | null): Plugin {
const publicName = 'favicon-theme.png';
// Brand logo files, served/emitted next to the favicon (see src/lib/brand.ts for the names' consumer).
const logoFiles: Record<string, string> = logo === null ? {} : {
'brand-logo-on-light.png': logo.onLight,
'brand-logo-on-dark.png': logo.onDark,
...(logo.mail === null ? {} : { 'brand-logo-mail.png': logo.mail }),
};
return {
name: 'cms-theme-favicon',