MCPcopy Create free account
hub / github.com/IIIIQIIII/claude-code / useSelectionBgColor

Function useSelectionBgColor

src/hooks/useCopyOnSelect.ts:93–98  ·  view source on GitHub ↗
(selection: Selection)

Source from the content-addressed store, hash-verified

91 * so the selection color tracks the theme live.
92 */
93export function useSelectionBgColor(selection: Selection): void {
94 const [themeName] = useTheme()
95 useEffect(() => {
96 selection.setSelectionBgColor(getTheme(themeName).selectionBg)
97 }, [selection, themeName])
98}

Callers 1

ScrollKeybindingHandlerFunction · 0.85

Calls 3

useThemeFunction · 0.85
getThemeFunction · 0.85
setSelectionBgColorMethod · 0.80

Tested by

no test coverage detected