杂务:更新 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
+28 -12
View File
@@ -25,12 +25,16 @@ export interface ResolvedShopTheme {
primaryColor: string
secondaryColor: string
accentColor: string
tertiaryColor: string
neutralColor: string
pageBgColor: string
cardBgColor: string
textPrimary: string
textSecondary: string
borderColor: string
primarySoftColor: string
secondarySoftColor: string
primaryActionColor: string
gradient: string
softGradient: string
backgroundImageFileId?: string
@@ -85,21 +89,25 @@ export function notifyShopThemeChanged() {
*/
function resolveShopThemeSource(source?: ShopThemeSource | null): ResolvedShopTheme {
const normalizedPrimaryColor = normalizeHexColor(source?.themePrimaryColor)
const primaryColor = normalizedPrimaryColor || '#C6597D'
const primaryColor = normalizedPrimaryColor || '#E8B4B8'
const secondaryColor = normalizeHexColor(source?.themeSecondaryColor)
|| (normalizedPrimaryColor ? mixColor(primaryColor, '#FFFFFF', 0.68) : '#E9B7C7')
const accentColor = normalizeHexColor(source?.themeAccentColor)
|| (normalizedPrimaryColor ? mixColor(primaryColor, '#7A3F56', 0.38) : '#9F4967')
const pageBgColor = normalizeHexColor(source?.themePageBgColor) || '#FFF7F9'
|| (normalizedPrimaryColor ? mixColor(primaryColor, '#C5A059', 0.35) : '#C5A059')
const neutralColor = normalizeHexColor(source?.themeAccentColor)
|| (normalizedPrimaryColor ? mixColor('#4A443F', primaryColor, 0.14) : '#4A443F')
const accentColor = neutralColor
const tertiaryColor = normalizeHexColor(source?.themePageBgColor) || '#FDFBF9'
const pageBgColor = tertiaryColor
const cardBgColor = normalizeHexColor(source?.themeCardBgColor) || '#FFFFFF'
const textPrimary = readableTextColor(pageBgColor, '#2D2430')
const textSecondary = textPrimary === '#2D2430'
? mixColor('#7A6871', primaryColor, 0.12)
const textPrimary = readableTextColor(pageBgColor, neutralColor)
const textSecondary = textPrimary === neutralColor
? mixColor(neutralColor, cardBgColor, 0.18)
: mixColor('#FFFFFF', primaryColor, 0.3)
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 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 = source?.themeBackgroundImageFileId === undefined || source?.themeBackgroundImageFileId === null
? undefined
: String(source.themeBackgroundImageFileId).trim() || undefined
@@ -108,12 +116,16 @@ function resolveShopThemeSource(source?: ShopThemeSource | null): ResolvedShopTh
primaryColor,
secondaryColor,
accentColor,
tertiaryColor,
neutralColor,
pageBgColor,
cardBgColor,
textPrimary,
textSecondary,
borderColor,
primarySoftColor,
secondarySoftColor,
primaryActionColor,
gradient,
softGradient,
backgroundImageFileId,
@@ -122,7 +134,11 @@ function resolveShopThemeSource(source?: ShopThemeSource | null): ResolvedShopTh
'--theme-primary': primaryColor,
'--theme-secondary': secondaryColor,
'--theme-accent': accentColor,
'--theme-neutral': neutralColor,
'--theme-tertiary': tertiaryColor,
'--theme-primary-action': primaryActionColor,
'--theme-primary-soft': primarySoftColor,
'--theme-secondary-soft': secondarySoftColor,
'--theme-page-bg': pageBgColor,
'--theme-card-bg': cardBgColor,
'--theme-border': borderColor,