Browse Source

fix(gui-v2): update local state of accent color

Signed-off-by: Pranav C <pranavxc@gmail.com>

fix(gui-v2): update local state of accent color

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3442/head
Pranav C 2 years ago
parent
commit
b0dac371a2
  1. 2
      packages/nc-gui-v2/components/tabs/auth/user-management/FeedbackForm.vue
  2. 3
      packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

2
packages/nc-gui-v2/components/tabs/auth/user-management/FeedbackForm.vue

@ -3,7 +3,7 @@ import CloseIcon from '~icons/material-symbols/close-rounded'
const { feedbackForm } = useGlobal()
const showForm = ref(false)
setTimeout(() => (showForm.value = true), 6000)
setTimeout(() => (showForm.value = true), 60000)
</script>
<template>

3
packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

@ -93,9 +93,10 @@ watch(themePrimaryColor, (nextColor) => {
const tcolor = tinycolor(hexColor)
if (tcolor) {
const complement = tcolor.complement()
themeAccentColor.value = nextColor.hex8 ? theme.value.accentColor : complement.toHex8String()
saveTheme({
primaryColor: hexColor,
accentColor: nextColor.hex8 ? theme.value.accentColor : complement.toHex8String(),
accentColor: themeAccentColor.value,
})
}
})

Loading…
Cancel
Save