fix: accent color always marked as the same color once loaded fixes #2196

This commit is contained in:
Andrew Bastin
2022-03-24 02:11:26 +05:30
parent 755ee333d0
commit 5d54cf51b8

View File

@@ -32,7 +32,7 @@
{{ t("settings.accent_color") }}
</h4>
<div class="my-1 text-secondaryLight">
{{ active.charAt(0).toUpperCase() + active.slice(1) }}
{{ ACCENT_COLOR.charAt(0).toUpperCase() + ACCENT_COLOR.slice(1) }}
</div>
<div class="mt-4">
<SmartAccentModePicker />
@@ -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(() => ({