Skip to content

Commit

Permalink
Fix hexcolor.replace is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
lakejason0 authored Apr 3, 2024
1 parent 0194d7f commit d626113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/themeDesigner.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Lakeus.initThemeDesigner = function () {
"color-secondary",
],
calculate: function (i) {
return i || Lakeus.getContrastYIQ(Lakeus.variablesList[this.calculateFrom[0]].value, Lakeus.variablesList[this.calculateFrom[0]].value.darken(0.1), Lakeus.variablesList[this.calculateFrom[0]].value.brighten(0.1));
return i || Lakeus.getContrastYIQ(Lakeus.variablesList[this.calculateFrom[0]].value.hex('rgb'), Lakeus.variablesList[this.calculateFrom[0]].value.darken(0.1), Lakeus.variablesList[this.calculateFrom[0]].value.brighten(0.1));
},
},
"border-color-secondary--derived": {
Expand All @@ -349,7 +349,7 @@ Lakeus.initThemeDesigner = function () {
"color-secondary",
],
calculate: function (i) {
return i || Lakeus.getContrastYIQ(Lakeus.variablesList[this.calculateFrom[0]].value, Lakeus.variablesList[this.calculateFrom[0]].value.darken(1), Lakeus.variablesList[this.calculateFrom[0]].value.brighten(1.5));
return i || Lakeus.getContrastYIQ(Lakeus.variablesList[this.calculateFrom[0]].value.hex('rgb'), Lakeus.variablesList[this.calculateFrom[0]].value.darken(1), Lakeus.variablesList[this.calculateFrom[0]].value.brighten(1.5));
},
},
"font-family": {
Expand Down

0 comments on commit d626113

Please sign in to comment.