diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index 0ec3b94e..83855b55 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -71,10 +71,7 @@ function ReloadRequiredCard({ required, enabledPlugins, openDisablePluginsModal,
Restart now to apply new plugins and their settings
-
}
/>
diff --git a/src/components/PluginSettings/styles.css b/src/components/PluginSettings/styles.css
index b34e4608..fbb9a523 100644
--- a/src/components/PluginSettings/styles.css
+++ b/src/components/PluginSettings/styles.css
@@ -66,10 +66,7 @@
background-color: var(--background-secondary-alt) !important;
transition: 0.1s ease-out;
transition-property: box-shadow, transform, background, opacity;
-}
-
-.vc-plugins-info-card div {
- line-height: 32px;
+ gap: 0.25em;
}
.vc-plugins-restart-card {
@@ -79,11 +76,11 @@
color: var(--info-warning-text);
}
-.vc-plugins-restart-card button {
+.vc-plugins-restart-button {
margin-top: 0.5em;
}
-.vc-plugins-info-button svg:not(:hover, :focus) {
+.vc-plugins-info-icon:not(:hover, :focus) {
color: var(--text-muted);
}
diff --git a/src/plugins/blurNsfw/index.ts b/src/plugins/blurNsfw/index.ts
index 948de0ac..c4023f09 100644
--- a/src/plugins/blurNsfw/index.ts
+++ b/src/plugins/blurNsfw/index.ts
@@ -24,14 +24,14 @@ let style: HTMLStyleElement;
function setCss() {
style.textContent = `
- .vc-nsfw-img [class^=imageWrapper] img,
- .vc-nsfw-img [class^=wrapperPaused] video {
+ .vc-nsfw-img [class^=imageContainer],
+ .vc-nsfw-img [class^=wrapperPaused] {
filter: blur(${Settings.plugins.BlurNSFW.blurAmount}px);
transition: filter 0.2s;
- }
- .vc-nsfw-img [class^=imageWrapper]:hover img,
- .vc-nsfw-img [class^=wrapperPaused]:hover video {
- filter: unset;
+
+ &:hover {
+ filter: blur(0);
+ }
}
`;
}
@@ -54,7 +54,7 @@ export default definePlugin({
options: {
blurAmount: {
type: OptionType.NUMBER,
- description: "Blur Amount",
+ description: "Blur Amount (in pixels)",
default: 10,
onChange: setCss
}
diff --git a/src/plugins/clientTheme/clientTheme.css b/src/plugins/clientTheme/clientTheme.css
index 19716e2f..795b5457 100644
--- a/src/plugins/clientTheme/clientTheme.css
+++ b/src/plugins/clientTheme/clientTheme.css
@@ -1,29 +1,29 @@
-.client-theme-settings {
+.vc-clientTheme-settings {
display: flex;
flex-direction: column;
}
-.client-theme-container {
+.vc-clientTheme-container {
display: flex;
flex-direction: row;
justify-content: space-between;
}
-.client-theme-settings-labels {
+.vc-clientTheme-labels {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
-.client-theme-container>[class^="colorSwatch"]>[class^="swatch"] {
+.vc-clientTheme-container [class^="swatch"] {
border: thin solid var(--background-modifier-accent) !important;
}
-.client-theme-warning * {
+.vc-clientTheme-warning-text {
color: var(--text-danger);
}
-.client-theme-contrast-warning {
+.vc-clientTheme-contrast-warning {
background-color: var(--background-primary);
padding: 0.5rem;
border-radius: .5rem;
@@ -31,4 +31,4 @@
flex-direction: row;
justify-content: space-between;
align-items: center;
-}
\ No newline at end of file
+}
diff --git a/src/plugins/clientTheme/index.tsx b/src/plugins/clientTheme/index.tsx
index 2dc7ccf6..c7e0e50d 100644
--- a/src/plugins/clientTheme/index.tsx
+++ b/src/plugins/clientTheme/index.tsx
@@ -7,6 +7,7 @@
import "./clientTheme.css";
import { definePluginSettings } from "@api/Settings";
+import { classNameFactory } from "@api/Styles";
import { Devs } from "@utils/constants";
import { Margins } from "@utils/margins";
import { classes } from "@utils/misc";
@@ -14,6 +15,8 @@ import definePlugin, { OptionType, StartAt } from "@utils/types";
import { findByCodeLazy, findComponentByCodeLazy, findStoreLazy } from "@webpack";
import { Button, Forms, ThemeStore, useStateFromStores } from "@webpack/common";
+const cl = classNameFactory("vc-clientTheme-");
+
const ColorPicker = findComponentByCodeLazy("#{intl::USER_SETTINGS_PROFILE_COLOR_SELECT_COLOR}", ".BACKGROUND_PRIMARY)");
const colorPresets = [
@@ -60,9 +63,9 @@ function ThemeSettings() {
}
return (
-
-
-
+
+
+
Theme Color
Add a color to your Discord client theme
@@ -76,10 +79,10 @@ function ThemeSettings() {
{(contrastWarning || nitroThemeEnabled) && (<>
-
-
Warning, your theme won't look good:
- {contrastWarning &&
Selected color won't contrast well with text}
- {nitroThemeEnabled &&
Nitro themes aren't supported}
+
+ Warning, your theme won't look good:
+ {contrastWarning && Selected color won't contrast well with text}
+ {nitroThemeEnabled && Nitro themes aren't supported}
{(contrastWarning && fixableContrast) &&
setTheme(oppositeTheme)} color={Button.Colors.RED}>Switch to {oppositeTheme} mode}
{(nitroThemeEnabled) &&
setTheme(theme)} color={Button.Colors.RED}>Disable Nitro Theme}
@@ -123,6 +126,7 @@ export default definePlugin({
stop() {
document.getElementById("clientThemeVars")?.remove();
document.getElementById("clientThemeOffsets")?.remove();
+ document.getElementById("clientThemeLightModeFixes")?.remove();
}
});
diff --git a/src/plugins/dearrow/index.tsx b/src/plugins/dearrow/index.tsx
index e6561368..e44fd0f2 100644
--- a/src/plugins/dearrow/index.tsx
+++ b/src/plugins/dearrow/index.tsx
@@ -121,6 +121,7 @@ function DearrowButton({ component }: { component: Component
; }) {
height="24px"
viewBox="0 0 36 36"
aria-label="Toggle Dearrow"
+ className="vc-dearrow-icon"
>
svg {
+.vc-toolbox-icon {
-webkit-app-region: no-drag;
}
-.vc-toolbox-btn>svg {
+.vc-toolbox-icon {
color: var(--interactive-normal);
}
-.vc-toolbox-btn[class*="selected"]>svg {
+.vc-toolbox-btn[class*="selected"] .vc-toolbox-icon {
color: var(--interactive-active);
}
-.vc-toolbox-btn:hover>svg {
+.vc-toolbox-btn:hover .vc-toolbox-icon {
color: var(--interactive-hover);
}
diff --git a/src/plugins/equicordToolbox/index.tsx b/src/plugins/equicordToolbox/index.tsx
index a715591d..f54d8981 100644
--- a/src/plugins/equicordToolbox/index.tsx
+++ b/src/plugins/equicordToolbox/index.tsx
@@ -88,7 +88,7 @@ function VencordPopout(onClose: () => void) {
function VencordPopoutIcon(isShown: boolean) {
return (
-