diff --git a/package.json b/package.json index bff89bba..32c634cc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "equicord", "private": "true", - "version": "1.10.4", + "version": "1.10.5", "description": "The other cutest Discord client mod", "homepage": "https://github.com/Equicord/Equicord#readme", "bugs": { @@ -119,4 +119,4 @@ "node": ">=18", "pnpm": ">=9" } -} \ No newline at end of file +} diff --git a/src/components/PluginSettings/PluginModal.css b/src/components/PluginSettings/PluginModal.css index ee2bec39..c56847ed 100644 --- a/src/components/PluginSettings/PluginModal.css +++ b/src/components/PluginSettings/PluginModal.css @@ -4,4 +4,74 @@ .vc-plugin-modal-description { flex-grow: 1; +} + +/* warning modal */ + +.vc-text-selectable { + user-select: none; +} + +.vc-warning-info { + gap: 15px; + flex-direction: column; + user-select: none; +} + +.vc-warning-info img { + width: 70%; + height: auto; + display: block; + margin: auto auto 10px; +} + +.vc-warning-info strong { + font-weight: bold; +} + +.vc-warning-info button.disable-warning { + font-size: 0.8rem; + background-color: transparent; + color: red; + cursor: pointer; + margin: 0 auto; + width: fit-content; + text-decoration: underline; +} + +.vc-warning-info button.disable-warning:hover { + background-color: transparent; + color: var(--text-danger); +} + +.vc-warning-info button.disable-warning:active { + background-color: transparent; +} + +.text-danger { + color: var(--text-danger); + font-size: 1.4rem; + font-weight: bold; +} + +.text-normal { + color: var(--text-normal); + font-size: 1.2rem; +} + +.text-normal.margin-bottom { + margin-bottom: 10px; +} + +.button-danger-background { + background-color: var(--button-danger-background); +} + +.button-danger-background-no-margin { + background-color: var(--button-danger-background) !important; + color: var(--header-primary); +} + +.vc-modal-close-button { + margin-left: auto !important; } \ No newline at end of file diff --git a/src/components/PluginSettings/PluginModal.tsx b/src/components/PluginSettings/PluginModal.tsx index 2b105ef9..d69d1316 100644 --- a/src/components/PluginSettings/PluginModal.tsx +++ b/src/components/PluginSettings/PluginModal.tsx @@ -407,36 +407,27 @@ export function openWarningModal(plugin: Plugin, pluginModalProps: ModalProps, o transitionState={warningModalProps.transitionState} > - Warning: Dangerous Action - + Warning: Dangerous Action + - + Warning - + You are about to reset all settings for {plugin.name} to their default values. - + This action is irreversible. - + If you are certain you want to proceed, click Confirm Reset. Otherwise, click Cancel. {!Settings.ignoreResetWarning && ( - diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index 2405875b..60cf2527 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -429,35 +429,26 @@ export default function PluginSettings() { {enabledPlugins.length > 0 && (