mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 02:29:03 +08:00
### What problem does this PR solve? Feat: Set the color of the canvas's control button #3851 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
1053ef5551
commit
b5e4a5563c
@ -58,3 +58,9 @@ export const useTheme = () => {
|
|||||||
|
|
||||||
return context;
|
return context;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const useIsDarkTheme = () => {
|
||||||
|
const { theme } = useTheme();
|
||||||
|
|
||||||
|
return theme === 'dark';
|
||||||
|
};
|
||||||
|
@ -103,6 +103,8 @@ function FlowCanvas({ drawerVisible, hideDrawer }: IProps) {
|
|||||||
hideSingleDebugDrawer,
|
hideSingleDebugDrawer,
|
||||||
} = useShowSingleDebugDrawer();
|
} = useShowSingleDebugDrawer();
|
||||||
|
|
||||||
|
const controlIconClassname = 'text-black';
|
||||||
|
|
||||||
const { formDrawerVisible, hideFormDrawer, showFormDrawer, clickedNode } =
|
const { formDrawerVisible, hideFormDrawer, showFormDrawer, clickedNode } =
|
||||||
useShowFormDrawer();
|
useShowFormDrawer();
|
||||||
|
|
||||||
@ -229,7 +231,7 @@ function FlowCanvas({ drawerVisible, hideDrawer }: IProps) {
|
|||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<FolderInput />
|
<FolderInput className={controlIconClassname} />
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent>Import</TooltipContent>
|
<TooltipContent>Import</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@ -239,7 +241,7 @@ function FlowCanvas({ drawerVisible, hideDrawer }: IProps) {
|
|||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<FolderOutput />
|
<FolderOutput className={controlIconClassname} />
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent>Export</TooltipContent>
|
<TooltipContent>Export</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user