This commit is contained in:
LeoKu 2022-06-08 21:55:57 +08:00
parent f9243a41bc
commit b6fc6eef52
3 changed files with 11 additions and 1 deletions

View File

@ -5,6 +5,11 @@
<link rel="icon" href="/favicon.svg" /> <link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="A pure front-end avatar generator." /> <meta name="description" content="A pure front-end avatar generator." />
<meta
name="keywords"
content="vector avatar,illustrations,avatar generator,avatar creator,fun avatar,随机头像,卡通头像在线免费生成工具"
/>
<meta content="dark" name="color-scheme" />
<meta property="og:title" content="Vue Color Avatar" /> <meta property="og:title" content="Vue Color Avatar" />
<meta <meta

View File

@ -11,6 +11,10 @@
local(Arial), local(sans-serif); local(Arial), local(sans-serif);
} }
:root {
color-scheme: dark;
}
html, html,
body { body {
height: 100%; height: 100%;

View File

@ -73,7 +73,8 @@ export function getRandomAvatarOption(
color: getRandomValue(SETTINGS.backgroundColor, { color: getRandomValue(SETTINGS.backgroundColor, {
avoid: [ avoid: [
useOption.background?.color, useOption.background?.color,
hairShape === TopsShape.Punk && hairColor, // Handle special cases and prevent color conflicts. (hairShape === TopsShape.Punk || hairShape === TopsShape.Fonze) &&
hairColor, // Handle special cases and prevent color conflicts.
], ],
}), }),
}, },