杂务:更新 YumiNail 工作区

This commit is contained in:
xiaowang
2026-05-29 13:30:56 +08:00
parent 1d077d4089
commit 31cd06b5c9
16498 changed files with 10330586 additions and 2340 deletions
+41 -17
View File
@@ -69,12 +69,18 @@ function buildStyleVars(theme) {
`--theme-primary: ${theme.primaryColor};`,
`--theme-secondary: ${theme.secondaryColor};`,
`--theme-accent: ${theme.accentColor};`,
`--theme-neutral: ${theme.neutralColor || theme.accentColor};`,
`--theme-tertiary: ${theme.tertiaryColor || theme.pageBgColor};`,
`--theme-primary-action: ${theme.primaryActionColor};`,
`--theme-page-bg: ${theme.pageBgColor};`,
`--theme-card-bg: ${theme.cardBgColor};`,
`--theme-border: ${theme.borderColor};`,
`--theme-primary-soft: ${theme.primarySoftColor};`,
`--theme-secondary-soft: ${theme.secondarySoftColor};`,
`--theme-gradient: ${theme.gradient};`,
`--theme-gradient-soft: ${theme.softGradient};`
`--theme-gradient-soft: ${theme.softGradient};`,
`--text-primary: ${theme.textPrimary};`,
`--text-secondary: ${theme.textSecondary};`
]
if (theme.backgroundImageUrl) {
styleVars.push(
@@ -95,15 +101,21 @@ function resolveShopTheme(source) {
const normalizedPrimaryColor = normalizeHexColor(themeSource.themePrimaryColor)
const primaryColor = normalizedPrimaryColor || DEFAULT_SHOP_THEME.primaryColor
const secondaryColor = normalizeHexColor(themeSource.themeSecondaryColor)
|| (normalizedPrimaryColor ? mixColor(primaryColor, '#FFFFFF', 0.68) : DEFAULT_SHOP_THEME.secondaryColor)
const accentColor = normalizeHexColor(themeSource.themeAccentColor)
|| (normalizedPrimaryColor ? mixColor(primaryColor, '#7A3F56', 0.38) : DEFAULT_SHOP_THEME.accentColor)
const pageBgColor = normalizeHexColor(themeSource.themePageBgColor) || DEFAULT_SHOP_THEME.pageBgColor
|| (normalizedPrimaryColor ? mixColor(primaryColor, DEFAULT_SHOP_THEME.secondaryColor, 0.35) : DEFAULT_SHOP_THEME.secondaryColor)
const neutralColor = normalizeHexColor(themeSource.themeAccentColor)
|| (normalizedPrimaryColor ? mixColor(DEFAULT_SHOP_THEME.neutralColor, primaryColor, 0.14) : DEFAULT_SHOP_THEME.neutralColor)
const accentColor = neutralColor
const tertiaryColor = normalizeHexColor(themeSource.themePageBgColor) || DEFAULT_SHOP_THEME.tertiaryColor
const pageBgColor = tertiaryColor
const cardBgColor = normalizeHexColor(themeSource.themeCardBgColor) || DEFAULT_SHOP_THEME.cardBgColor
const borderColor = mixColor(primaryColor, cardBgColor, 0.82)
const primarySoftColor = mixColor(primaryColor, cardBgColor, 0.88)
const gradient = `linear-gradient(135deg, ${primaryColor} 0%, ${secondaryColor} 100%)`
const softGradient = `linear-gradient(145deg, ${cardBgColor} 0%, ${mixColor(secondaryColor, pageBgColor, 0.55)} 58%, ${mixColor(primaryColor, pageBgColor, 0.82)} 100%)`
const textPrimary = neutralColor
const textSecondary = mixColor(neutralColor, cardBgColor, 0.18)
const borderColor = mixColor(primaryColor, cardBgColor, 0.72)
const primarySoftColor = mixColor(primaryColor, cardBgColor, 0.78)
const secondarySoftColor = mixColor(secondaryColor, pageBgColor, 0.66)
const primaryActionColor = mixColor(neutralColor, primaryColor, 0.28)
const gradient = `linear-gradient(135deg, ${primaryActionColor} 0%, ${secondaryColor} 100%)`
const softGradient = `linear-gradient(145deg, ${cardBgColor} 0%, ${secondarySoftColor} 58%, ${mixColor(primaryColor, pageBgColor, 0.62)} 100%)`
const backgroundImageFileId = themeSource.themeBackgroundImageFileId
? String(themeSource.themeBackgroundImageFileId).trim()
: ''
@@ -114,10 +126,16 @@ function resolveShopTheme(source) {
primaryColor,
secondaryColor,
accentColor,
tertiaryColor,
neutralColor,
pageBgColor,
cardBgColor,
textPrimary,
textSecondary,
borderColor,
primarySoftColor,
secondarySoftColor,
primaryActionColor,
gradient,
softGradient,
backgroundImageFileId,
@@ -132,15 +150,21 @@ function resolveShopTheme(source) {
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
*/
const DEFAULT_SHOP_THEME = {
primaryColor: '#C6597D',
secondaryColor: '#E9B7C7',
accentColor: '#9F4967',
pageBgColor: '#FFF7F9',
primaryColor: '#E8B4B8',
secondaryColor: '#C5A059',
accentColor: '#4A443F',
tertiaryColor: '#FDFBF9',
neutralColor: '#4A443F',
pageBgColor: '#FDFBF9',
cardBgColor: '#FFFFFF',
borderColor: '#EFD8E0',
primarySoftColor: '#FBF1F4',
gradient: 'linear-gradient(135deg, #C6597D 0%, #E9B7C7 100%)',
softGradient: 'linear-gradient(145deg, #FFFFFF 0%, #FFF1F5 58%, #FFE8EF 100%)',
textPrimary: '#4A443F',
textSecondary: '#6B6662',
borderColor: '#F9EAEC',
primarySoftColor: '#FAEFF0',
secondarySoftColor: '#EADCC2',
primaryActionColor: '#766361',
gradient: 'linear-gradient(135deg, #766361 0%, #C5A059 100%)',
softGradient: 'linear-gradient(145deg, #FFFFFF 0%, #EADCC2 58%, #F5E0E0 100%)',
backgroundImageFileId: '',
backgroundImageUrl: ''
}