diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 02a56c7629..5e638933d9 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -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 }) }) diff --git a/Themes/BasicBackground/BasicBackground.css b/Themes/BasicBackground/BasicBackground.css index a3e019d26d..c2661cac63 100644 --- a/Themes/BasicBackground/BasicBackground.css +++ b/Themes/BasicBackground/BasicBackground.css @@ -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); } diff --git a/Themes/DiscordRecolor/DiscordRecolor.css b/Themes/DiscordRecolor/DiscordRecolor.css index 6067f43746..741457a23d 100644 --- a/Themes/DiscordRecolor/DiscordRecolor.css +++ b/Themes/DiscordRecolor/DiscordRecolor.css @@ -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;