Feat: Modify the background color of the canvas #9869 (#10507)

### What problem does this PR solve?

Feat: Modify the background color of the canvas #9869

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-10-13 11:10:54 +08:00
committed by GitHub
parent 58836d84fe
commit acca3640f7
4 changed files with 7 additions and 9 deletions

View File

@ -1,13 +1,11 @@
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)'}
color="var(--text-primary)"
bgColor="rgb(var(--bg-canvas))"
className="rounded-lg"
/>
);
}