This commit is contained in:
Daniel van Noord
2021-01-30 01:10:08 +01:00
parent 0547381845
commit 63139933ce
3 changed files with 4 additions and 6 deletions

View File

@@ -2080,7 +2080,7 @@ CM.Disp.CreatePrefOption = function(config) {
input.style.width = '65px';
input.setAttribute('value', CM.Options.Colors[CM.Disp.colors[i]]);
innerDiv.appendChild(input);
let change = function() {CM.Options.Colors[this.targetElement.id] = this.toHEXString(); CM.Disp.UpdateColors(); CM.Config.SaveConfig(); console.log('done');};
let change = function() {CM.Options.Colors[this.targetElement.id] = this.toHEXString(); CM.Disp.UpdateColors(); CM.Config.SaveConfig();};
let picker = new JSColor(input, {hash: true, position: "right", onInput: change})
var label = document.createElement('label');
label.textContent = CM.ConfigData.Colors.desc[CM.Disp.colors[i]];