We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
changeNeutralColor
1 parent 1cad514 commit c018dddCopy full SHA for c018ddd
packages/theme-generator/src/color-panel/index.vue
@@ -508,12 +508,11 @@ export default {
508
changeFunctionColor(hex, type) {
509
const oldColor = getOptionFromLocal(type);
510
updateLocalOption(type, oldColor !== hex ? hex : null);
511
-
+ this[`${type}MainColor`] = hex;
512
if (type === 'gray') {
513
this.changeNeutralColor(false);
514
return;
515
}
516
- this[`${type}MainColor`] = hex;
517
const { lightPalette, darkPalette } = generateFunctionalPalette(hex);
518
updateStyleSheetColor(type, lightPalette, darkPalette);
519
this.$nextTick(this.refreshColorTokens);
0 commit comments