From 4991457df696ce072a71ae89e0c4a76839538d6e Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 22 Feb 2023 15:34:45 +0100 Subject: [PATCH] stuff --- Library/0BDFDB.plugin.js | 10 +++++----- Library/_res/0BDFDB.data.json | 4 ++-- Plugins/ChatFilter/ChatFilter.plugin.js | 4 ++-- .../CustomStatusPresets/CustomStatusPresets.plugin.js | 4 ++-- .../DisplayServersAsChannels.plugin.js | 6 +++--- Plugins/PluginRepo/PluginRepo.plugin.js | 4 ++-- Plugins/ServerFolders/ServerFolders.plugin.js | 4 ++-- Plugins/ShowConnections/ShowConnections.plugin.js | 6 +++--- Plugins/ThemeRepo/ThemeRepo.plugin.js | 4 ++-- .../TimedLightDarkMode/TimedLightDarkMode.plugin.js | 4 ++-- Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js | 4 ++-- 11 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 518e9a66f5..9e84a21f57 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 3.0.7 + * @version 3.0.8 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -2943,13 +2943,13 @@ module.exports = (_ => { if (!Internal.DiscordConstants.Colors) return null; status = typeof status == "string" ? status.toLowerCase() : null; switch (status) { - case "online": return useColor ? Internal.DiscordConstants.Colors.STATUS_GREEN_600 : "var(--status-positive)"; - case "idle": return useColor ? Internal.DiscordConstants.Colors.STATUS_YELLOW : "var(--status-warning)"; - case "dnd": return useColor ? Internal.DiscordConstants.Colors.STATUS_RED : "var(--status-danger)"; + case "online": return useColor ? Internal.DiscordConstants.Colors._GREEN_600 : "var(--status-positive)"; + case "idle": return useColor ? Internal.DiscordConstants.Colors._YELLOW : "var(--status-warning)"; + case "dnd": return useColor ? Internal.DiscordConstants.Colors._RED : "var(--status-danger)"; case "playing": return useColor ? Internal.DiscordConstants.Colors.BRAND : "var(--bdfdb-blurple)"; case "listening": return Internal.DiscordConstants.Colors.SPOTIFY; case "streaming": return Internal.DiscordConstants.Colors.TWITCH; - default: return Internal.DiscordConstants.Colors.STATUS_GREY; + default: return Internal.DiscordConstants.Colors._GREY; } }; BDFDB.UserUtils.getActivity = function (id = BDFDB.UserUtils.me.id) { diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index e3ed86b614..d4febfa8db 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -57,7 +57,7 @@ "ChannelTextAreaTypes": ["CREATE_FORUM_POST", "PROFILE_BIO_INPUT", "FORUM_CHANNEL_GUIDELINES"], "ChannelTypes": ["GUILD_TEXT", "GUILD_STORE", "DM"], "ChannelTypeGroups": ["GUILD_TEXTUAL", "GUILD_VOCAL", "ALL_DMS"], - "Colors": ["SPOTIFY", "STATUS_RED"], + "Colors": ["SPOTIFY", "RED_100", "BLUE"], "ColorVariables": ["status-danger", "background-primary"], "ComponentActions": ["INSERT_TEXT", "TEXTAREA_FOCUS"], "EmojiSprites": ["DiversityPerRow", "PickerPerRow"], @@ -251,7 +251,7 @@ "LibraryComponents": { "Anchor": {"strings": ["anchorUnderlineOnHover", "noreferrer noopener"]}, "Animations": {"props": ["Controller", "Spring"]}, - "AppReferencePositionLayer": {"strings": ["\"onMount\"", "\"onUnmount\""]}, + "AppReferencePositionLayer": {"strings": [".LayerProvider,", ".LayerContainer,", ".layerContext,"], "funcStrings": [",{children:(", "({ref:"]}, "Avatars": {"strings": ["\"statusColor\"", "ONLINE", "isMobile"], "exported": false, "value": "exports", "map": { "AnimatedAvatar": ["compare"], "Avatar": ["statusColor"], diff --git a/Plugins/ChatFilter/ChatFilter.plugin.js b/Plugins/ChatFilter/ChatFilter.plugin.js index 23f19ee7e8..9ab93efe73 100644 --- a/Plugins/ChatFilter/ChatFilter.plugin.js +++ b/Plugins/ChatFilter/ChatFilter.plugin.js @@ -2,7 +2,7 @@ * @name ChatFilter * @author DevilBro * @authorId 278543574059057154 - * @version 3.5.7 + * @version 3.5.8 * @description Allows you to censor Words or block complete Messages/Statuses * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -98,7 +98,7 @@ module.exports = (_ => { this.css = ` ${BDFDB.dotCN._chatfilterblocked} { - color: ${BDFDB.DiscordConstants.Colors.STATUS_RED} !important; + color: ${BDFDB.DiscordConstants.Colors.RED} !important; } ${BDFDB.dotCN.messagerepliedmessagecontentclickable}:hover ${BDFDB.dotCN._chatfilterblocked} { filter: saturate(2); diff --git a/Plugins/CustomStatusPresets/CustomStatusPresets.plugin.js b/Plugins/CustomStatusPresets/CustomStatusPresets.plugin.js index bee32f7e81..831bf75835 100644 --- a/Plugins/CustomStatusPresets/CustomStatusPresets.plugin.js +++ b/Plugins/CustomStatusPresets/CustomStatusPresets.plugin.js @@ -2,7 +2,7 @@ * @name CustomStatusPresets * @author DevilBro * @authorId 278543574059057154 - * @version 1.1.4 + * @version 1.1.5 * @description Allows you to save Custom Statuses as Quick Select * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -292,7 +292,7 @@ module.exports = (_ => { flex: 0 0 auto; } ${BDFDB.dotCN._customstatuspresetssortdivider} { - background: ${BDFDB.DiscordConstants.Colors.STATUS_GREEN}; + background: ${BDFDB.DiscordConstants.Colors.GREEN}; height: 2px; margin: 0 26px 8px 0; } diff --git a/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js b/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js index 5487079b24..6e425e2622 100644 --- a/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js +++ b/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js @@ -2,7 +2,7 @@ * @name DisplayServersAsChannels * @author DevilBro * @authorId 278543574059057154 - * @version 1.6.4 + * @version 1.6.5 * @description Displays Servers in a similar way as Channels * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -221,7 +221,7 @@ module.exports = (_ => { }), BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.GuildBadge, { size: this.settings.amounts.serverElementHeight * 0.5, - badgeColor: BDFDB.DiscordConstants.Colors.STATUS_GREY, + badgeColor: BDFDB.DiscordConstants.Colors.GREY, tooltipColor: BDFDB.LibraryComponents.TooltipContainer.Colors.BLACK, tooltipPosition: BDFDB.LibraryComponents.TooltipContainer.Positions.RIGHT, guild: e.instance.props.guild @@ -399,7 +399,7 @@ module.exports = (_ => { ${BDFDB.dotCNS.themedark + BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildsscroller}::-webkit-scrollbar-thumb, ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCN.guildswrapper + BDFDB.dotCNS.themedark + BDFDB.dotCN.guildsscroller}::-webkit-scrollbar-thumb { - background-color: ${BDFDB.DiscordConstants.Colors.PRIMARY_DARK_800}; + background-color: ${BDFDB.DiscordConstants.Colors.PRIMARY_800}; } ${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildouter} { diff --git a/Plugins/PluginRepo/PluginRepo.plugin.js b/Plugins/PluginRepo/PluginRepo.plugin.js index 0ce5844d18..d72000d8b2 100644 --- a/Plugins/PluginRepo/PluginRepo.plugin.js +++ b/Plugins/PluginRepo/PluginRepo.plugin.js @@ -2,7 +2,7 @@ * @name PluginRepo * @author DevilBro * @authorId 278543574059057154 - * @version 2.4.5 + * @version 2.4.6 * @description Allows you to download all Plugins from BD's Website within Discord * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -370,7 +370,7 @@ module.exports = (_ => { style: { borderRadius: 3, textTransform: "uppercase", - background: BDFDB.DiscordConstants.Colors.STATUS_YELLOW + background: BDFDB.DiscordConstants.Colors.YELLOW }, text: BDFDB.LanguageUtils.LanguageStrings.NEW }) diff --git a/Plugins/ServerFolders/ServerFolders.plugin.js b/Plugins/ServerFolders/ServerFolders.plugin.js index 227cce3d22..b809241dd8 100644 --- a/Plugins/ServerFolders/ServerFolders.plugin.js +++ b/Plugins/ServerFolders/ServerFolders.plugin.js @@ -2,7 +2,7 @@ * @name ServerFolders * @author DevilBro * @authorId 278543574059057154 - * @version 7.1.1 + * @version 7.1.2 * @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 * @donate https://www.paypal.me/MircoWittrien @@ -737,7 +737,7 @@ module.exports = (_ => { e.returnvalue, BDFDB.ReactUtils.createElement(FolderGuildContentComponent, { isAppFullscreen: BDFDB.LibraryStores.ChannelRTCStore.isFullscreenInContext(), - themeOverride: BDFDB.LibraryStores.AccessibilityStore.darkSidebar + themeOverride: BDFDB.LibraryStores.ThemeStore.darkSidebar }, true) ].flat(10); } diff --git a/Plugins/ShowConnections/ShowConnections.plugin.js b/Plugins/ShowConnections/ShowConnections.plugin.js index 539033fd85..4d8c58a19b 100644 --- a/Plugins/ShowConnections/ShowConnections.plugin.js +++ b/Plugins/ShowConnections/ShowConnections.plugin.js @@ -2,7 +2,7 @@ * @name ShowConnections * @author DevilBro * @authorId 278543574059057154 - * @version 1.1.6 + * @version 1.1.7 * @description Shows the connected Accounts of a User in the UserPopout * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -121,12 +121,12 @@ module.exports = (_ => { children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FlowerStar, { className: BDFDB.disCN._showconnectionsverifiedbadge, size: "50%", - color: isLightTheme ? BDFDB.DiscordConstants.Colors.STATUS_GREY_200 : BDFDB.DiscordConstants.Colors.PRIMARY_DARK, + color: isLightTheme ? BDFDB.DiscordConstants.Colors.PRIMARY_200 : BDFDB.DiscordConstants.Colors.PRIMARY, children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, { name: BDFDB.LibraryComponents.SvgIcon.Names.CHECKMARK, width: "70%", height: "70%", - color: isLightTheme ? BDFDB.DiscordConstants.Colors.STATUS_GREY_500 : BDFDB.DiscordConstants.Colors.WHITE + color: isLightTheme ? BDFDB.DiscordConstants.Colors.PRIMARY_500 : BDFDB.DiscordConstants.Colors.WHITE }) }) }) diff --git a/Plugins/ThemeRepo/ThemeRepo.plugin.js b/Plugins/ThemeRepo/ThemeRepo.plugin.js index 2744bb0ff9..74cda03d70 100644 --- a/Plugins/ThemeRepo/ThemeRepo.plugin.js +++ b/Plugins/ThemeRepo/ThemeRepo.plugin.js @@ -2,7 +2,7 @@ * @name ThemeRepo * @author DevilBro * @authorId 278543574059057154 - * @version 2.4.8 + * @version 2.4.9 * @description Allows you to download all Themes from BD's Website within Discord * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -522,7 +522,7 @@ module.exports = (_ => { style: { borderRadius: 3, textTransform: "uppercase", - background: BDFDB.DiscordConstants.Colors.STATUS_YELLOW + background: BDFDB.DiscordConstants.Colors.YELLOW }, text: BDFDB.LanguageUtils.LanguageStrings.NEW }) diff --git a/Plugins/TimedLightDarkMode/TimedLightDarkMode.plugin.js b/Plugins/TimedLightDarkMode/TimedLightDarkMode.plugin.js index 3bed6b6e25..521bfeaa4e 100644 --- a/Plugins/TimedLightDarkMode/TimedLightDarkMode.plugin.js +++ b/Plugins/TimedLightDarkMode/TimedLightDarkMode.plugin.js @@ -2,7 +2,7 @@ * @name TimedLightDarkMode * @author DevilBro * @authorId 278543574059057154 - * @version 1.1.5 + * @version 1.1.6 * @description Adds a Time Slider to the Appearance Settings * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -116,7 +116,7 @@ module.exports = (_ => { label: `${BDFDB.LanguageUtils.LanguageStrings.THEME} Timer`, tag: BDFDB.LibraryComponents.FormComponents.FormTags.H5, childProps: { - checkedColor: BDFDB.DiscordConstants.Colors.STATUS_GREEN_600 + checkedColor: BDFDB.DiscordConstants.Colors.GREEN_600 }, onChange: (value, instance) => { this.startInterval(); diff --git a/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js b/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js index 4384c32ab4..0eb97a7483 100644 --- a/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js +++ b/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js @@ -2,7 +2,7 @@ * @name TopRoleEverywhere * @author DevilBro * @authorId 278543574059057154 - * @version 3.1.1 + * @version 3.1.2 * @description Adds the highest Role of a User as a Tag * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -222,7 +222,7 @@ module.exports = (_ => { createTag (role, type, config = {}) { if (this.settings.general.useOtherStyle) { - let tagColor = BDFDB.ColorUtils.convert(role.colorString || BDFDB.DiscordConstants.Colors.PRIMARY_DARK_500, "RGB") + let tagColor = BDFDB.ColorUtils.convert(role.colorString || BDFDB.DiscordConstants.Colors.PRIMARY_500, "RGB") let isBright = role.colorString && BDFDB.ColorUtils.isBright(tagColor); tagColor = isBright ? (this.settings.general.useBlackFont ? tagColor : BDFDB.ColorUtils.change(tagColor, -0.3)) : tagColor; return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.BotTag, {