diff --git a/lightrag_webui/src/features/GraphViewer.tsx b/lightrag_webui/src/features/GraphViewer.tsx index f7a14fe3..3f1839f8 100644 --- a/lightrag_webui/src/features/GraphViewer.tsx +++ b/lightrag_webui/src/features/GraphViewer.tsx @@ -23,7 +23,7 @@ import LegendButton from '@/components/graph/LegendButton' import { useSettingsStore } from '@/stores/settings' import { useGraphStore } from '@/stores/graph' -import { labelColorDarkTheme } from '@/lib/constants' +import { labelColorDarkTheme, labelColorLightTheme } from '@/lib/constants' import '@react-sigma/core/lib/style.css' import '@react-sigma/graph-search/lib/style.css' @@ -48,11 +48,11 @@ const createSigmaSettings = (isDarkTheme: boolean): Partial => ({ labelRenderedSizeThreshold: 12, enableEdgeEvents: true, labelColor: { - color: isDarkTheme ? labelColorDarkTheme : '#000', + color: isDarkTheme ? labelColorDarkTheme : labelColorLightTheme, attribute: 'labelColor' }, edgeLabelColor: { - color: isDarkTheme ? labelColorDarkTheme : '#000', + color: isDarkTheme ? labelColorDarkTheme : labelColorLightTheme, attribute: 'labelColor' }, edgeLabelSize: 8, diff --git a/lightrag_webui/src/lib/constants.ts b/lightrag_webui/src/lib/constants.ts index 839fe533..30b13f4f 100644 --- a/lightrag_webui/src/lib/constants.ts +++ b/lightrag_webui/src/lib/constants.ts @@ -6,6 +6,7 @@ export const webuiPrefix = '/webui/' export const controlButtonVariant: ButtonVariantType = 'ghost' export const labelColorDarkTheme = '#B2EBF2' +export const labelColorLightTheme = '#000' export const LabelColorHighlightedDarkTheme = '#000' export const nodeColorDisabled = '#E2E2E2'