Compare commits

..

1 Commits

3 changed files with 22 additions and 20 deletions

View File

@@ -104,7 +104,7 @@ function selectColor() {
watch(
() => [modelValue.value, props.isDark] as [BuiltinThemeType, boolean],
([themeType, isDark]) => {
([themeType, isDark], [_, isDarkPrev]) => {
const theme = builtinThemePresets.value.find(
(item) => item.type === themeType,
);
@@ -113,7 +113,9 @@ watch(
? theme.darkPrimaryColor || theme.primaryColor
: theme.primaryColor;
themeColorPrimary.value = primaryColor || theme.color;
if (!(theme.type === 'custom' && isDark !== isDarkPrev)) {
themeColorPrimary.value = primaryColor || theme.color;
}
}
},
);

34
pnpm-lock.yaml generated
View File

@@ -412,8 +412,8 @@ catalogs:
specifier: ^16.0.0
version: 16.0.0
stylelint-config-recommended-scss:
specifier: ^16.0.0
version: 16.0.0
specifier: ^14.1.0
version: 14.1.0
stylelint-config-recommended-vue:
specifier: ^1.6.1
version: 1.6.1
@@ -1025,7 +1025,7 @@ importers:
version: 16.0.0(stylelint@16.21.0(typescript@5.8.3))
stylelint-config-recommended-scss:
specifier: 'catalog:'
version: 16.0.0(postcss@8.5.6)(stylelint@16.21.0(typescript@5.8.3))
version: 14.1.0(postcss@8.5.6)(stylelint@16.21.0(typescript@5.8.3))
stylelint-config-recommended-vue:
specifier: 'catalog:'
version: 1.6.1(postcss-html@1.8.0)(stylelint@16.21.0(typescript@5.8.3))
@@ -10568,12 +10568,12 @@ packages:
peerDependencies:
stylelint: '>=16'
stylelint-config-recommended-scss@16.0.0:
resolution: {integrity: sha512-Vh09MlGgKUwgHwuTQXPI6CbwMgXEUpjv+6EpVhZtHkGUJY7yFIoJby3Wcjd12rvdp6xOMdMIKU48Qu6KwZK+mw==}
engines: {node: '>=20'}
stylelint-config-recommended-scss@14.1.0:
resolution: {integrity: sha512-bhaMhh1u5dQqSsf6ri2GVWWQW5iUjBYgcHkh7SgDDn92ijoItC/cfO/W+fpXshgTQWhwFkP1rVcewcv4jaftRg==}
engines: {node: '>=18.12.0'}
peerDependencies:
postcss: ^8.3.3
stylelint: ^16.23.1
stylelint: ^16.6.1
peerDependenciesMeta:
postcss:
optional: true
@@ -10585,18 +10585,18 @@ packages:
postcss-html: ^1.0.0
stylelint: '>=14.0.0'
stylelint-config-recommended@14.0.1:
resolution: {integrity: sha512-bLvc1WOz/14aPImu/cufKAZYfXs/A/owZfSMZ4N+16WGXLoX5lOir53M6odBxvhgmgdxCVnNySJmZKx73T93cg==}
engines: {node: '>=18.12.0'}
peerDependencies:
stylelint: ^16.1.0
stylelint-config-recommended@16.0.0:
resolution: {integrity: sha512-4RSmPjQegF34wNcK1e1O3Uz91HN8P1aFdFzio90wNK9mjgAI19u5vsU868cVZboKzCaa5XbpvtTzAAGQAxpcXA==}
engines: {node: '>=18.12.0'}
peerDependencies:
stylelint: ^16.16.0
stylelint-config-recommended@17.0.0:
resolution: {integrity: sha512-WaMSdEiPfZTSFVoYmJbxorJfA610O0tlYuU2aEwY33UQhSPgFbClrVJYWvy3jGJx+XW37O+LyNLiZOEXhKhJmA==}
engines: {node: '>=18.12.0'}
peerDependencies:
stylelint: ^16.23.0
stylelint-config-standard@38.0.0:
resolution: {integrity: sha512-uj3JIX+dpFseqd/DJx8Gy3PcRAJhlEZ2IrlFOc4LUxBX/PNMEQ198x7LCOE2Q5oT9Vw8nyc4CIL78xSqPr6iag==}
engines: {node: '>=18.12.0'}
@@ -21349,11 +21349,11 @@ snapshots:
stylelint: 16.21.0(typescript@5.8.3)
stylelint-order: 6.0.4(stylelint@16.21.0(typescript@5.8.3))
stylelint-config-recommended-scss@16.0.0(postcss@8.5.6)(stylelint@16.21.0(typescript@5.8.3)):
stylelint-config-recommended-scss@14.1.0(postcss@8.5.6)(stylelint@16.21.0(typescript@5.8.3)):
dependencies:
postcss-scss: 4.0.9(postcss@8.5.6)
stylelint: 16.21.0(typescript@5.8.3)
stylelint-config-recommended: 17.0.0(stylelint@16.21.0(typescript@5.8.3))
stylelint-config-recommended: 14.0.1(stylelint@16.21.0(typescript@5.8.3))
stylelint-scss: 6.12.1(stylelint@16.21.0(typescript@5.8.3))
optionalDependencies:
postcss: 8.5.6
@@ -21366,11 +21366,11 @@ snapshots:
stylelint-config-html: 1.1.0(postcss-html@1.8.0)(stylelint@16.21.0(typescript@5.8.3))
stylelint-config-recommended: 16.0.0(stylelint@16.21.0(typescript@5.8.3))
stylelint-config-recommended@16.0.0(stylelint@16.21.0(typescript@5.8.3)):
stylelint-config-recommended@14.0.1(stylelint@16.21.0(typescript@5.8.3)):
dependencies:
stylelint: 16.21.0(typescript@5.8.3)
stylelint-config-recommended@17.0.0(stylelint@16.21.0(typescript@5.8.3)):
stylelint-config-recommended@16.0.0(stylelint@16.21.0(typescript@5.8.3)):
dependencies:
stylelint: 16.21.0(typescript@5.8.3)

View File

@@ -154,7 +154,7 @@ catalog:
stylelint: ^16.21.0
stylelint-config-recess-order: ^6.1.0
stylelint-config-recommended: ^16.0.0
stylelint-config-recommended-scss: ^16.0.0
stylelint-config-recommended-scss: ^14.1.0
stylelint-config-recommended-vue: ^1.6.1
stylelint-config-standard: ^38.0.0
stylelint-order: ^7.0.0