MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getBackgroundColor

Function getBackgroundColor

packages/ui/src/views/agentflowsv2/StickyNote.jsx:55–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 const getBackgroundColor = () => {
56 if (customization.isDarkMode) {
57 return isHovered ? darken(nodeColor, 0.7) : darken(nodeColor, 0.8)
58 }
59 return isHovered ? lighten(nodeColor, 0.8) : lighten(nodeColor, 0.9)
60 }
61
62 return (
63 <div ref={ref} onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)}>

Callers 1

StickyNoteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected