From 5d54cf51b814c4a252a17d783c9eca61041a932d Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 24 Mar 2022 02:11:26 +0530 Subject: [PATCH] fix: accent color always marked as the same color once loaded fixes #2196 --- packages/hoppscotch-app/pages/settings.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/hoppscotch-app/pages/settings.vue b/packages/hoppscotch-app/pages/settings.vue index 8edc19621..da460ad2b 100644 --- a/packages/hoppscotch-app/pages/settings.vue +++ b/packages/hoppscotch-app/pages/settings.vue @@ -32,7 +32,7 @@ {{ t("settings.accent_color") }}
- {{ active.charAt(0).toUpperCase() + active.slice(1) }} + {{ ACCENT_COLOR.charAt(0).toUpperCase() + ACCENT_COLOR.slice(1) }}
@@ -248,13 +248,13 @@ import { hasChromeExtensionInstalled, hasFirefoxExtensionInstalled, } from "~/helpers/strategies/ExtensionStrategy" -import { getLocalConfig } from "~/newstore/localpersistence" import { browserIsChrome, browserIsFirefox } from "~/helpers/utils/userAgent" const t = useI18n() const toast = useToast() const colorMode = useColorMode() +const ACCENT_COLOR = useSetting("THEME_COLOR") const PROXY_ENABLED = useSetting("PROXY_ENABLED") const PROXY_URL = useSetting("PROXY_URL") const EXTENSIONS_ENABLED = useSetting("EXTENSIONS_ENABLED") @@ -290,8 +290,6 @@ const hasFirefoxExtInstalled = usePolled(5000, (stopPolling) => { const clearIcon = ref("rotate-ccw") -const active = ref(getLocalConfig("THEME_COLOR") || "blue") - const confirmRemove = ref(false) const proxySettings = computed(() => ({