This commit is contained in:
Mirco Wittrien 2019-08-15 15:43:13 +02:00
parent 5002d1a707
commit 508eef4263
2 changed files with 8 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -3152,6 +3152,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
}
}
};
BDFDB.setColorSwatches = function (container, currentcolor) {
if (!Node.prototype.isPrototypeOf(container)) return;
@ -3180,6 +3181,12 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
setSwatch(e.currentTarget, e.currentTarget.style.getPropertyValue('background-color'), true);
}
});
BDFDB.addChildEventListener(swatches, 'mouseenter', BDFDB.dotCN.colorpickerswatch + BDFDB.dotCN.colorpickerswatchcustom, e => {
BDFDB.createTooltip(BDFDB.LanguageStrings.CUSTOM_COLOR, e.currentTarget, {type: 'bottom'});
});
BDFDB.addChildEventListener(swatches, 'mouseenter', BDFDB.dotCNS.colorpickerrow + BDFDB.dotCN.colorpickerswatch + BDFDB.dotCN.colorpickerswatchnocolor, e => {
BDFDB.createTooltip(BDFDB.LanguageStrings.DEFAULT, e.currentTarget, {type: 'bottom'});
});
};
BDFDB.getSwatchColor = function (container, nr) {