This commit is contained in:
Mirco Wittrien 2020-10-20 21:57:17 +02:00
parent b0bb83b86f
commit dbeb1ff9e1
3 changed files with 18 additions and 5 deletions

View File

@ -5,12 +5,12 @@ module.exports = (_ => {
"info": {
"name": "EditUsers",
"author": "DevilBro",
"version": "3.9.8",
"version": "3.9.9",
"description": "Allow you to change the icon, name, tag and color of users"
},
"changeLog": {
"fixed": {
"Chat": "Works again in chat"
"improved": {
"Message Color Gradient": "Color Gradient now also works for messages, kinda"
}
}
};
@ -587,7 +587,13 @@ module.exports = (_ => {
else {
let data = changedUsers[e.instance.props.message.author.id];
let messageColor = data && (data.color5 || (BDFDB.BDUtils.getSettings(BDFDB.BDUtils.settingsIds.coloredText) && (data.color1 && data.useRoleColor && (BDFDB.LibraryModules.MemberStore.getMember((BDFDB.LibraryModules.ChannelStore.getChannel(e.instance.props.message.channel_id) || {}).guild_id, e.instance.props.message.author.id) || {}).colorString || data.color1)));
if (messageColor) e.returnvalue.props.style = Object.assign({}, e.returnvalue.props.style, {color: BDFDB.ColorUtils.convert(BDFDB.ObjectUtils.is(messageColor) ? messageColor[0] : messageColor, "RGBA")});
if (messageColor) {
if (BDFDB.ObjectUtils.is(messageColor)) e.returnvalue.props.children = BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TextGradientElement, {
gradient: BDFDB.ColorUtils.createGradient(messageColor),
children: e.returnvalue.props.children
});
else e.returnvalue.props.style = Object.assign({}, e.returnvalue.props.style, {color: BDFDB.ColorUtils.convert(messageColor, "RGBA")});
}
}
}
}
@ -1238,7 +1244,6 @@ module.exports = (_ => {
className: BDFDB.disCN.marginbottom20,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color5,
pickerConfig: {gradient: false},
number: 5
})
})

View File

@ -4459,6 +4459,10 @@ body::before {
background-color: rgba(var(--vtransparencycolor), 0.2);
}
.categoryItemDefaultCategory-aBZ6nJ:first-child,
.categoryItemDefaultCategory-aBZ6nJ:first-child + .categoryItemDefaultCategory-aBZ6nJ {
margin-bottom: 8px;
}
.categoryItemDefaultCategory-aBZ6nJ:hover { /* picker categoryitem */
background-color: rgba(var(--vtransparencycolor), 0.3);
}

View File

@ -3177,6 +3177,10 @@ html {
#app-mount .wrapper-1GJGVj {
color: var(--text-muted);
}
.categoryItemDefaultCategory-aBZ6nJ:first-child,
.categoryItemDefaultCategory-aBZ6nJ:first-child + .categoryItemDefaultCategory-aBZ6nJ {
margin-bottom: 8px;
}
#app-mount .sadImage-2ph8SI {
background-image: url(https://discordapp.com/assets/e25713e4eba8c1e069ceac8f90262f62.svg);
opacity: .5;