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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user