This commit is contained in:
Mirco Wittrien 2021-05-12 09:05:20 +02:00
parent 7a95453c40
commit 29f926101e
4 changed files with 4 additions and 14 deletions

View File

@ -192,13 +192,6 @@ module.exports = (_ => {
}
}
}
processMessageContent (e) {
if (e.instance.props.message.editedTimestamp && this.settings.general.changeForEdit) {
let editStamp = BDFDB.ReactUtils.findChild(e.returnvalue, {name: "SuffixEdited"});
if (editStamp) console.log(editStamp);
}
}
processEmbed (e) {
if (e.instance.props.embed && e.instance.props.embed.timestamp && this.settings.general.showInEmbed) {

View File

@ -294,10 +294,8 @@ module.exports = (_ => {
callback(canvas.toDataURL(type));
};
img.onerror = function() {
console.log("b");
callback(base64);
};
console.log(base64);
img.src = base64;
}
}

View File

@ -164,7 +164,6 @@ module.exports = (_ => {
let input = refs.imports[i];
let oldValue = input.props.oldValue;
let newValue = input.props.value;
console.log(oldValue, newValue);
if (newValue.toString() != oldValue.toString()) {
let importUrl = input.props.name;
if (newValue) css = css.replace(new RegExp(`\\n${BDFDB.StringUtils.regEscape("/* @import url(" + importUrl + "); */")}`, "g"), `\n@import url(${importUrl});`);
@ -177,7 +176,6 @@ module.exports = (_ => {
let input = refs.inputs[i];
let oldValue = input.props.oldValue;
let newValue = input.props.value;
console.log(oldValue, newValue);
if (newValue && newValue.trim() && newValue != oldValue) {
let varName = input.props.name;
css = css.replace(new RegExp(`--${BDFDB.StringUtils.regEscape(varName)}(\\s*):(\\s*)${BDFDB.StringUtils.regEscape(oldValue)}`,"g"), `--${varName}$1: $2${newValue}`);

View File

@ -25,9 +25,10 @@
--accentcolor: 114,137,218; /* Blurple - default: 114,137,218 - hex: #7289da */
--accentcolor2: 255,115,250; /* Boostpink - default: 255,115,250 - hex: #ff73fa */
--linkcolor: 0,176,244; /* Link Color - default: 0,176,244 - hex: #00b0f4 */
--successcolor: 59,165,92; /* Success Color - default: 59,165,92 - hex: #3ba55c */
--warningcolor: 250,166,26; /* Warning Color - default: 250,166,26 - hex: #faa61a */
--dangercolor: 240,71,71; /* Danger Color - default: 240,71,71 - hex: #f04747 */
--mentioncolor: 250,166,26; /* Highlight Color - default: 250,166,26 - hex: #faa61a */
--successcolor: 59,165,92; /* Success Color - default: 59,165,92 - hex: #3ba55c */
--warningcolor: 250,166,26; /* Warning Color - default: 250,166,26 - hex: #faa61a */
--dangercolor: 240,71,71; /* Danger Color - default: 240,71,71 - hex: #f04747 */
--textbrightest: 255,255,255; /* Text Color 1 - default: 255,255,255 - hex: #ffffff */
--textbrighter: 222,222,222; /* Text Color 2 - default: 220,221,222 - hex: #dcddde */