import { computed } from 'vue' import thc from '@/utils/themeColor' import { usePersonalization } from '../usePersonalization' import type { GlobalThemeOverrides } from 'naive-ui' export function useComponentThemeOverrides() { const { isDark } = usePersonalization() const scrollbarInModal = computed(() => isDark.value ? { color: thc.neutral[750], colorHover: thc.neutral[700], } : { color: thc.neutral[200], colorHover: thc.neutral[250], }, ) const scrollbarInMainLayout = computed(() => isDark.value ? { color: thc.neutral[800], colorHover: thc.neutral[750], } : { color: thc.neutral[350], colorHover: thc.neutral[400], }, ) const selectInPopover = computed(() => isDark.value ? { peers: { InternalSelectMenu: { color: thc.neutral[700], optionColorPending: thc.neutral[600], }, }, } : { peers: { InternalSelectMenu: { color: '#fff', optionColorPending: thc.neutral[150], }, }, }, ) const datePickerInPopover = computed(() => isDark.value ? { panelColor: thc.neutral[700], } : { panelColor: '#fff', }, ) return { scrollbarInModal, scrollbarInMainLayout, selectInPopover, datePickerInPopover, } }