mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-31 21:13:49 +08:00
### What problem does this PR solve? Feat: Modify the style of the agent page bright theme #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
14 lines
366 B
TypeScript
14 lines
366 B
TypeScript
import { useIsDarkTheme } from '@/components/theme-provider';
|
|
import { Background } from '@xyflow/react';
|
|
|
|
export function AgentBackground() {
|
|
const isDarkTheme = useIsDarkTheme();
|
|
|
|
return (
|
|
<Background
|
|
color={isDarkTheme ? 'rgba(255,255,255,0.15)' : '#A8A9B3'}
|
|
bgColor={isDarkTheme ? 'rgba(11, 11, 12, 1)' : 'rgba(0, 0, 0, 0.05)'}
|
|
/>
|
|
);
|
|
}
|