Skip to content

Commit dee1123

Browse files
committed
Reuse editor colors in the minimap (#237507)
1 parent 0cebd59 commit dee1123

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/vs/platform/theme/common/colors/minimapColors.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ import { Color, RGBA } from '../../../../base/common/color.js';
1010
import { registerColor, transparent } from '../colorUtils.js';
1111

1212
// Import the colors we need
13-
import { editorInfoForeground, editorWarningForeground, editorWarningBorder, editorInfoBorder } from './editorColors.js';
14-
import { scrollbarSliderBackground, scrollbarSliderHoverBackground, scrollbarSliderActiveBackground } from './miscColors.js';
13+
import { editorFindMatchHighlight, editorInfoBorder, editorInfoForeground, editorSelectionBackground, editorSelectionHighlight, editorWarningBorder, editorWarningForeground } from './editorColors.js';
14+
import { scrollbarSliderActiveBackground, scrollbarSliderBackground, scrollbarSliderHoverBackground } from './miscColors.js';
1515

1616

1717
export const minimapFindMatch = registerColor('minimap.findMatchHighlight',
18-
{ light: '#d18616', dark: '#d18616', hcDark: '#AB5A00', hcLight: '#0F4A85' },
18+
editorFindMatchHighlight,
1919
nls.localize('minimapFindMatchHighlight', 'Minimap marker color for find matches.'), true);
2020

2121
export const minimapSelectionOccurrenceHighlight = registerColor('minimap.selectionOccurrenceHighlight',
22-
{ light: '#c9c9c9', dark: '#676767', hcDark: '#ffffff', hcLight: '#0F4A85' },
22+
editorSelectionHighlight,
2323
nls.localize('minimapSelectionOccurrenceHighlight', 'Minimap marker color for repeating editor selections.'), true);
2424

2525
export const minimapSelection = registerColor('minimap.selectionHighlight',
26-
{ light: '#ADD6FF', dark: '#264F78', hcDark: '#ffffff', hcLight: '#0F4A85' },
26+
editorSelectionBackground,
2727
nls.localize('minimapSelectionHighlight', 'Minimap marker color for the editor selection.'), true);
2828

2929
export const minimapInfo = registerColor('minimap.infoHighlight',

0 commit comments

Comments
 (0)