This commit is contained in:
Mirco Wittrien 2024-04-19 14:45:22 +02:00
parent a248a23501
commit b8dcab3cd0
3 changed files with 44 additions and 10 deletions

View File

@ -219,6 +219,7 @@
"FormTitle": ["FormTitle"] "FormTitle": ["FormTitle"]
}}, }},
"GuildBadge": {"strings": ["foregroundDarkColor", "getBadgeCategory"]}, "GuildBadge": {"strings": ["foregroundDarkColor", "getBadgeCategory"]},
"GuildChild": {"strings": [".getAcronym", ",fontSize:", ".acronym"]},
"GuildIcon": {"strings": ["SMOL", "badgeStrokeColor"], "funcStrings": ["render()"]}, "GuildIcon": {"strings": ["SMOL", "badgeStrokeColor"], "funcStrings": ["render()"]},
"GuildItem": {"strings": ["guildNode:", "useShouldShowInvitesDisabledNotif"]}, "GuildItem": {"strings": ["guildNode:", "useShouldShowInvitesDisabledNotif"]},
"GuildTooltipMutedText": {"strings": [".muteConfig", "color:\"text-muted\""]}, "GuildTooltipMutedText": {"strings": [".muteConfig", "color:\"text-muted\""]},
@ -360,6 +361,7 @@
"GuildEmojis": {"strings": ["getMaxEmojiSlots", "lightSrc:", ".Messages.NO_EMOJI"]}, "GuildEmojis": {"strings": ["getMaxEmojiSlots", "lightSrc:", ".Messages.NO_EMOJI"]},
"GuildFavorites": {"strings": [".favoriteIcon", "FAVORITES_GUILD_NAME"]}, "GuildFavorites": {"strings": [".favoriteIcon", "FAVORITES_GUILD_NAME"]},
"GuildHeader": {"strings": ["bannerVisible:", "disableBannerAnimation:", "onContextMenu"]}, "GuildHeader": {"strings": ["bannerVisible:", "disableBannerAnimation:", "onContextMenu"]},
"GuildChild": {"strings": [".getAcronym", ",fontSize:", ".acronym"], "noSearch": true},
"GuildIcon": {"strings": [",animate:", ",size:", "{active:!0"], "noSearch": true}, "GuildIcon": {"strings": [",animate:", ",size:", "{active:!0"], "noSearch": true},
"GuildIconWrapper": {"strings": ["badgeStrokeColor:", "textScale:"]}, "GuildIconWrapper": {"strings": ["badgeStrokeColor:", "textScale:"]},
"GuildInvitationRow": {"strings": [".getSelectedInviteMetadata", ".getSuggestedProps", "inviteKey:"], "noSearch": true}, "GuildInvitationRow": {"strings": [".getSelectedInviteMetadata", ".getSuggestedProps", "inviteKey:"], "noSearch": true},
@ -1396,7 +1398,7 @@
"GuildInvite": {"props": ["wrapper", "guildIconJoined"]}, "GuildInvite": {"props": ["wrapper", "guildIconJoined"]},
"GuildsButton": {"props": ["circleIconButton", "circleIcon"], "length": 6, "smaller": true}, "GuildsButton": {"props": ["circleIconButton", "circleIcon"], "length": 6, "smaller": true},
"GuildsDragPlaceholder": {"props": ["dragInner", "placeholderMask"], "length": 6, "smaller": true}, "GuildsDragPlaceholder": {"props": ["dragInner", "placeholderMask"], "length": 6, "smaller": true},
"GuildSeparator": {"props": ["guildSeparator"]}, "GuildSeparator": {"props": ["guildSeparator"], "length": 6, "smaller": true},
"GuildServer": {"props": ["blobContainer", "pill"]}, "GuildServer": {"props": ["blobContainer", "pill"]},
"GuildSettingsBanned": {"props": ["bannedUser", "bannedUserAvatar"]}, "GuildSettingsBanned": {"props": ["bannedUser", "bannedUserAvatar"]},
"GuildSettingsEmoji": {"props": ["emojiRow", "emojiAliasPlaceholder"]}, "GuildSettingsEmoji": {"props": ["emojiRow", "emojiAliasPlaceholder"]},

View File

@ -2,7 +2,7 @@
* @name DisplayServersAsChannels * @name DisplayServersAsChannels
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @authorId 278543574059057154
* @version 1.7.5 * @version 1.7.6
* @description Displays Servers in a similar way as Channels * @description Displays Servers in a similar way as Channels
* @invite Jx3TjNS * @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien * @donate https://www.paypal.me/MircoWittrien
@ -86,6 +86,7 @@ module.exports = (_ => {
"DirectMessage", "DirectMessage",
"FolderHeader", "FolderHeader",
"FolderItemWrapper", "FolderItemWrapper",
"GuildChild",
"GuildFavorites", "GuildFavorites",
"GuildItem", "GuildItem",
"GuildsBar", "GuildsBar",
@ -210,7 +211,8 @@ module.exports = (_ => {
processGuildItem (e) { processGuildItem (e) {
if (!e.instance.props.guild) return; if (!e.instance.props.guild) return;
e.returnvalue.props.className = BDFDB.DOMUtils.formatClassName(e.returnvalue.props.className, BDFDB.LibraryStores.UserGuildSettingsStore.isMuted(e.instance.props.guild.id) && BDFDB.disCN._displayserversaschannelsmuted); let guildcontainer = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.guildcontainer]]});
if (guildcontainer) guildcontainer.props.className = BDFDB.DOMUtils.formatClassName(guildcontainer.props.className, BDFDB.LibraryStores.UserGuildSettingsStore.isMuted(e.instance.props.guild.id) && BDFDB.disCN._displayserversaschannelsmuted);
if (!BDFDB.BDUtils.isPluginEnabled("ServerDetails")) this.removeTooltip(e.returnvalue, e.instance.props.guild); if (!BDFDB.BDUtils.isPluginEnabled("ServerDetails")) this.removeTooltip(e.returnvalue, e.instance.props.guild);
e.returnvalue = this.removeMask(e.returnvalue); e.returnvalue = this.removeMask(e.returnvalue);
this.addElementName(e.returnvalue, e.instance.props.guild.name, { this.addElementName(e.returnvalue, e.instance.props.guild.name, {
@ -231,9 +233,14 @@ module.exports = (_ => {
}); });
} }
processGuildChild (e) {
let guildchild = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.guildiconchildwrapper]]});
if (guildchild) guildchild.props.className = BDFDB.disCNS.guildiconchildwrapper + BDFDB.disCN.guildiconacronym;
}
processFolderHeader (e) { processFolderHeader (e) {
if (!e.instance.props.folderNode) return; if (!e.instance.props.folderNode) return;
e.returnvalue = this.removeMask(e.returnvalue, true); e.returnvalue = this.removeMask(e.returnvalue);
let folderColor = BDFDB.ColorUtils.convert(e.instance.props.folderNode.color, "HEX") || BDFDB.ColorUtils.convert(BDFDB.DiscordConstants.Colors.BRAND, "RGB"); let folderColor = BDFDB.ColorUtils.convert(e.instance.props.folderNode.color, "HEX") || BDFDB.ColorUtils.convert(BDFDB.DiscordConstants.Colors.BRAND, "RGB");
let folderSize = Math.round(this.settings.amounts.serverElementHeight * 0.725); let folderSize = Math.round(this.settings.amounts.serverElementHeight * 0.725);
let badge = null; let badge = null;
@ -372,7 +379,7 @@ module.exports = (_ => {
delete returnvalue.props.name; delete returnvalue.props.name;
if (options.wrap) for (let i = children.slice(index + 1).length; i > 0; i--) children[index + i] = null; if (options.wrap) for (let i = children.slice(index + 1).length; i > 0; i--) children[index + i] = null;
returnvalue.props.children = options.wrap ? BDFDB.ReactUtils.createElement("div", { returnvalue.props.children = options.wrap ? BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.guildiconchildwrapper, className: BDFDB.disCNS.guildiconchildwrapper + BDFDB.disCN.guildiconacronym,
style: {backgroundColor: options.backgroundColor}, style: {backgroundColor: options.backgroundColor},
children: childEles children: childEles
}) : childEles; }) : childEles;
@ -406,6 +413,7 @@ module.exports = (_ => {
width: auto; width: auto;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
margin-bottom: 8px;
margin-left: 8px; margin-left: 8px;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildinnerwrapper}, ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildinnerwrapper},
@ -413,6 +421,7 @@ module.exports = (_ => {
width: ${this.settings.amounts.serverListWidth - 20}px; width: ${this.settings.amounts.serverListWidth - 20}px;
height: ${this.settings.amounts.serverElementHeight}px; height: ${this.settings.amounts.serverElementHeight}px;
border-radius: 4px !important; border-radius: 4px !important;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildsscroller} > div[style*="transform"][style*="height"] { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildsscroller} > div[style*="transform"][style*="height"] {
height: unset !important; height: unset !important;
@ -425,9 +434,11 @@ module.exports = (_ => {
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildiconchildwrapper} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildiconchildwrapper} {
width: ${this.settings.amounts.serverListWidth - 20}px; width: ${this.settings.amounts.serverListWidth - 20}px;
height: ${this.settings.amounts.serverElementHeight}px; height: ${this.settings.amounts.serverElementHeight}px;
border-radius: 4px !important;
padding: 0 8px; padding: 0 8px;
box-sizing: border-box; box-sizing: border-box;
cursor: pointer; cursor: pointer;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildiconchildwrapper + BDFDB.dotCN._displayserversaschannelsname} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildiconchildwrapper + BDFDB.dotCN._displayserversaschannelsname} {
flex: 1 1 auto; flex: 1 1 auto;
@ -435,6 +446,7 @@ module.exports = (_ => {
font-weight: 500; font-weight: 500;
padding-top: 1px; padding-top: 1px;
overflow: hidden; overflow: hidden;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildiconchildwrapper + BDFDB.dotCN._displayserversaschannelsname} ~ img { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildiconchildwrapper + BDFDB.dotCN._displayserversaschannelsname} ~ img {
height: 130%; height: 130%;
@ -456,6 +468,7 @@ module.exports = (_ => {
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildiconchildwrapper + BDFDB.dotCNS._displayserversaschannelsbadge + BDFDB.dotCN.avataricon} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildiconchildwrapper + BDFDB.dotCNS._displayserversaschannelsbadge + BDFDB.dotCN.avataricon} {
width: ${this.settings.amounts.serverElementHeight/32 * 24}px; width: ${this.settings.amounts.serverElementHeight/32 * 24}px;
height: ${this.settings.amounts.serverElementHeight/32 * 24}px; height: ${this.settings.amounts.serverElementHeight/32 * 24}px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildiconchildwrapper + BDFDB.dotCN.badgebase} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildiconchildwrapper + BDFDB.dotCN.badgebase} {
margin-left: 4px; margin-left: 4px;
@ -477,11 +490,13 @@ module.exports = (_ => {
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.homebuttonicon} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.homebuttonicon} {
width: ${this.settings.amounts.serverElementHeight/32 * 28}px; width: ${this.settings.amounts.serverElementHeight/32 * 28}px;
height: ${this.settings.amounts.serverElementHeight/32 * 20}px; height: ${this.settings.amounts.serverElementHeight/32 * 20}px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.avatarwrapper} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.avatarwrapper} {
width: ${this.settings.amounts.serverElementHeight/32 * 24}px !important; width: ${this.settings.amounts.serverElementHeight/32 * 24}px !important;
height: ${this.settings.amounts.serverElementHeight/32 * 24}px !important; height: ${this.settings.amounts.serverElementHeight/32 * 24}px !important;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildseparator} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildseparator} {
@ -491,6 +506,7 @@ module.exports = (_ => {
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildiconwrapper} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildiconwrapper} {
height: ${this.settings.amounts.serverElementHeight}px; height: ${this.settings.amounts.serverElementHeight}px;
width: ${this.settings.amounts.serverListWidth - 20}px; width: ${this.settings.amounts.serverListWidth - 20}px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfolderwrapper} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfolderwrapper} {
@ -501,6 +517,7 @@ module.exports = (_ => {
align-items: center; align-items: center;
height: ${this.settings.amounts.serverElementHeight}px; height: ${this.settings.amounts.serverElementHeight}px;
width: ${this.settings.amounts.serverListWidth - 20}px; width: ${this.settings.amounts.serverListWidth - 20}px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfolder}[data-folder-name]::after { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfolder}[data-folder-name]::after {
content: attr(data-folder-name); content: attr(data-folder-name);
@ -517,16 +534,19 @@ module.exports = (_ => {
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfoldericonwrapper}[style*="background"] { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfoldericonwrapper}[style*="background"] {
margin-left: ${Math.round(this.settings.amounts.serverElementHeight * -0.15)}px; margin-left: ${Math.round(this.settings.amounts.serverElementHeight * -0.15)}px;
background-position-x: ${Math.round(this.settings.amounts.serverElementHeight * 0.75) / 10}px !important; background-position-x: ${Math.round(this.settings.amounts.serverElementHeight * 0.75) / 10}px !important;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfolder} > ${BDFDB.dotCN.guildfoldericonwrapper} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfolder} > ${BDFDB.dotCN.guildfoldericonwrapper} {
margin-left: 6px; margin-left: 6px;
background-size: ${Math.round(this.settings.amounts.serverElementHeight * 0.85)}px ${Math.round(this.settings.amounts.serverElementHeight * 0.85)}px !important; background-size: ${Math.round(this.settings.amounts.serverElementHeight * 0.85)}px ${Math.round(this.settings.amounts.serverElementHeight * 0.85)}px !important;
background-position: center center !important; background-position: center center !important;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfoldericonwrapper}, ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfoldericonwrapper},
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfoldericonwrapperexpanded} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfoldericonwrapperexpanded} {
height: ${Math.round(this.settings.amounts.serverElementHeight * 0.85)}px; height: ${Math.round(this.settings.amounts.serverElementHeight * 0.85)}px;
width: ${Math.round(this.settings.amounts.serverElementHeight * 0.85)}px; width: ${Math.round(this.settings.amounts.serverElementHeight * 0.85)}px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfolderexpandedbackground} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfolderexpandedbackground} {
top: -2px; top: -2px;
@ -546,10 +566,12 @@ module.exports = (_ => {
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildbuttoninner} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildbuttoninner} {
height: ${this.settings.amounts.serverElementHeight}px; height: ${this.settings.amounts.serverElementHeight}px;
width: ${this.settings.amounts.serverListWidth - 20}px; width: ${this.settings.amounts.serverListWidth - 20}px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildbuttoninner} svg { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildbuttoninner} svg {
width: ${this.settings.amounts.serverElementHeight/32 * 20}px; width: ${this.settings.amounts.serverElementHeight/32 * 20}px;
height: ${this.settings.amounts.serverElementHeight/32 * 20}px; height: ${this.settings.amounts.serverElementHeight/32 * 20}px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildbuttoninner + BDFDB.dotCN._displayserversaschannelsname} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildbuttoninner + BDFDB.dotCN._displayserversaschannelsname} {
padding-top: 0; padding-top: 0;
@ -561,6 +583,7 @@ module.exports = (_ => {
font-size: ${this.settings.amounts.serverElementHeight/32 * 20}px; font-size: ${this.settings.amounts.serverElementHeight/32 * 20}px;
border: none; border: none;
display: block; display: block;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildserror + BDFDB.dotCN.guildiconchildwrapper} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCNS.guildserror + BDFDB.dotCN.guildiconchildwrapper} {
padding-right: ${this.settings.amounts.serverElementHeight/32 * 16 + (32/this.settings.amounts.serverElementHeight - 1) * 4}px; padding-right: ${this.settings.amounts.serverElementHeight/32 * 16 + (32/this.settings.amounts.serverElementHeight - 1) * 4}px;
@ -574,11 +597,13 @@ module.exports = (_ => {
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN._readallnotificationsbuttonbutton} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN._readallnotificationsbuttonbutton} {
height: ${this.settings.amounts.serverElementHeight}px !important; height: ${this.settings.amounts.serverElementHeight}px !important;
width: ${this.settings.amounts.serverListWidth - 20}px; width: ${this.settings.amounts.serverListWidth - 20}px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN._friendnotificationsfriendsonline}, ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN._friendnotificationsfriendsonline},
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildslabel} { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildslabel} {
height: ${this.settings.amounts.serverElementHeight * 0.6}px !important; height: ${this.settings.amounts.serverElementHeight * 0.6}px !important;
width: ${this.settings.amounts.serverListWidth - 20}px; width: ${this.settings.amounts.serverListWidth - 20}px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN._readallnotificationsbuttonbutton}, ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN._readallnotificationsbuttonbutton},
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN._friendnotificationsfriendsonline}, ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN._friendnotificationsfriendsonline},
@ -591,6 +616,7 @@ module.exports = (_ => {
text-transform: capitalize; text-transform: capitalize;
padding-top: 1px; padding-top: 1px;
padding-left: 8px; padding-left: 8px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildplaceholdermask}, ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildplaceholdermask},
@ -606,6 +632,7 @@ module.exports = (_ => {
border-radius: 4px; border-radius: 4px;
height: ${this.settings.amounts.serverElementHeight}px; height: ${this.settings.amounts.serverElementHeight}px;
width: ${this.settings.amounts.serverListWidth - 20}px; width: ${this.settings.amounts.serverListWidth - 20}px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildplaceholdermask} > *, ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildplaceholdermask} > *,
display: none; display: none;
@ -631,6 +658,7 @@ module.exports = (_ => {
font-size: ${this.settings.amounts.serverElementHeight / 2}px; font-size: ${this.settings.amounts.serverElementHeight / 2}px;
font-weight: 500; font-weight: 500;
padding-left: 8px; padding-left: 8px;
transform: unset;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCN.guildswrapper} #server-search ${BDFDB.dotCN.guildinner}::after { ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCN.guildswrapper} #server-search ${BDFDB.dotCN.guildinner}::after {
content: ""; content: "";
@ -640,6 +668,7 @@ module.exports = (_ => {
width: ${this.settings.amounts.serverElementHeight/32 * 20}px; width: ${this.settings.amounts.serverElementHeight/32 * 20}px;
height: ${this.settings.amounts.serverElementHeight/32 * 20}px; height: ${this.settings.amounts.serverElementHeight/32 * 20}px;
background: var(--text-normal); background: var(--text-normal);
transform: unset;
-web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NjUxIDEyLjQwNTk0NjMsOC40OTE3MDk1NSAxMi40MDU5NDYzLDcuMjAyOTczMTMgQzEyLjQwNTk0NjMsNC4zMjkzMzEwNSAxMC4wNzY2MTUyLDIgNy4yMDI5NzMxMywyIEM0LjMyOTMzMTA1LDIgMiw0LjMyOTMzMTA1IDIsNy4yMDI5NzMxMyBDMiwxMC4wNzY2MTUyIDQuMzI5MzMxMDUsMTIuNDA1OTQ2MyA3LjIwMjk3MzEzLDEyLjQwNTk0NjMgQzguNDkxNzA5NTUsMTIuNDA1OTQ2MyA5LjY3NjM4NjUxLDExLjkzMzY3NjQgMTAuNTg4OTA3OSwxMS4xNDkyMjgxIEwxMC44MDUwMzE0LDExLjM3MzM1NjIgTDEwLjgwNTAzMTQsMTIuMDA1NzE3NiBMMTQuODA3MzE4NSwxNiBMMTYsMTQuODA3MzE4NSBMMTIuMjEwMjUzOCwxMS4wMDk5Nzc2IEwxMi4wMDU3MTc2LDEwLjgwNTAzMTQgWiI+PC9wYXRoPjwvZz48L3N2Zz4=') center/cover no-repeat;
} }
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCN.guildswrapper} #server-search ${BDFDB.dotCN.guildbuttonpill}, ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCN.guildswrapper} #server-search ${BDFDB.dotCN.guildbuttonpill},

View File

@ -2,7 +2,7 @@
* @name ServerFolders * @name ServerFolders
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @authorId 278543574059057154
* @version 7.2.2 * @version 7.2.3
* @description Changes Discord's Folders, Servers open in a new Container, also adds extra Features to more easily organize, customize and manage your Folders * @description Changes Discord's Folders, Servers open in a new Container, also adds extra Features to more easily organize, customize and manage your Folders
* @invite Jx3TjNS * @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien * @donate https://www.paypal.me/MircoWittrien
@ -798,10 +798,13 @@ module.exports = (_ => {
else if (e.instance.props.expanded || data.useClosedIcon) { else if (e.instance.props.expanded || data.useClosedIcon) {
let folderIcons = this.loadAllIcons(), iconType = e.instance.props.expanded ? "openicon" : "closedicon"; let folderIcons = this.loadAllIcons(), iconType = e.instance.props.expanded ? "openicon" : "closedicon";
let icon = folderIcons[data.iconID] ? (!folderIcons[data.iconID].customID ? this.createBase64SVG(folderIcons[data.iconID][iconType], data.color1, data.color2) : folderIcons[data.iconID][iconType]) : null; let icon = folderIcons[data.iconID] ? (!folderIcons[data.iconID].customID ? this.createBase64SVG(folderIcons[data.iconID][iconType], data.color1, data.color2) : folderIcons[data.iconID][iconType]) : null;
if (icon) children[index] = BDFDB.ReactUtils.createElement("div", { if (icon) {
className: BDFDB.disCN.guildfoldericonwrapper, children[index] = BDFDB.ReactUtils.createElement("div", {
style: {background: `url(${icon}) center/cover no-repeat`} className: BDFDB.disCN.guildfoldericonwrapper,
}); style: {background: `url(${icon}) center/cover no-repeat`}
});
BDFDB.ReactUtils.forceStyle(children[index], ["background"]);
}
} }
if (this.settings.general.showCountBadge) { if (this.settings.general.showCountBadge) {
let mask = BDFDB.ReactUtils.findChild(e.returnvalue, {name: "BlobMask"}); let mask = BDFDB.ReactUtils.findChild(e.returnvalue, {name: "BlobMask"});