Commit 71df46a8 authored by tom's avatar tom

fix command pallete item hover bg

parent 2e3dada5
......@@ -44,7 +44,7 @@ const CodeEditorFileTree = ({ tree, level = 0, onItemClick, isCollapsed, selecte
pr="8px"
py="0"
pl={ `${ 8 + 8 * level }px` }
_hover={{ bgColor: themeColors['list.hoverBackground'] }}
_hover={{ bgColor: themeColors['custom.list.hoverBackground'] }}
fontSize="13px"
lineHeight="22px"
h="22px"
......@@ -88,7 +88,7 @@ const CodeEditorFileTree = ({ tree, level = 0, onItemClick, isCollapsed, selecte
alignItems="center"
overflow="hidden"
_hover={{
bgColor: selectedFile === leaf.file_path ? themeColors['list.inactiveSelectionBackground'] : themeColors['list.hoverBackground'],
bgColor: selectedFile === leaf.file_path ? themeColors['list.inactiveSelectionBackground'] : themeColors['custom.list.hoverBackground'],
}}
bgColor={ selectedFile === leaf.file_path ? themeColors['list.inactiveSelectionBackground'] : 'none' }
>
......
......@@ -45,7 +45,7 @@ const CodeEditorSearchResultItem = ({ lineContent, filePath, onClick, startLineN
data-line-number={ startLineNumber }
onClick={ onClick }
transitionDuration="0"
_hover={{ bgColor: themeColors['list.hoverBackground'] }}
_hover={{ bgColor: themeColors['custom.list.hoverBackground'] }}
>
<span>{ lineContent.slice(start, startColumn - 1) }</span>
<chakra.span bgColor={ themeColors['custom.findMatchHighlightBackground'] }>
......
......@@ -35,7 +35,7 @@ const CodeEditorSearchSection = ({ data, onItemClick }: Props) => {
<AccordionButton
py={ 0 }
px={ 2 }
_hover={{ bgColor: themeColors['list.hoverBackground'] }}
_hover={{ bgColor: themeColors['custom.list.hoverBackground'] }}
fontSize="13px"
transitionDuration="0"
lineHeight="22px"
......
......@@ -17,7 +17,6 @@ export const light = {
'input.foreground': '#616161',
'input.background': '#fff',
'list.hoverBackground': 'rgba(16, 17, 18, 0.08)', // blackAlpha.200
'list.inactiveSelectionBackground': '#e4e6f1',
'breadcrumbs.foreground': 'rgb(97, 97, 97)',
......@@ -29,6 +28,7 @@ export const light = {
focusBorder: '#0090f1',
// not able to use rgba for standard variables, so we use custom prefix here
'custom.list.hoverBackground': 'rgba(16, 17, 18, 0.08)', // blackAlpha.200
'custom.findMatchHighlightBackground': 'rgba(234,92,0,0.33)',
'custom.inputOption.activeBackground': 'rgba(0, 144, 241, 0.2)',
'custom.inputOption.hoverBackground': 'rgba(184, 184, 184, 0.31)',
......@@ -57,7 +57,6 @@ export const dark = {
'input.foreground': '#cccccc',
'input.background': '#3c3c3c',
'list.hoverBackground': 'rgba(255, 255, 255, 0.08)', // whiteAlpha.200
'list.inactiveSelectionBackground': '#37373d',
'badge.background': '#4d4d4d',
......@@ -69,6 +68,7 @@ export const dark = {
focusBorder: '#007fd4',
// not able to use rgba for standard variables, so we use custom prefix here
'custom.list.hoverBackground': 'rgba(255, 255, 255, 0.08)', // whiteAlpha.200
'custom.findMatchHighlightBackground': 'rgba(234,92,0,0.33)',
'custom.inputOption.activeBackground': 'rgba(0, 127, 212, 0.4)',
'custom.inputOption.hoverBackground': 'rgba(90, 93, 94, 0.31)',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment