
import { localize } from '../../../../nls.js';
import { Color, RGBA } from '../../../../base/common/color.js';
import { registerColor, transparent } from '../colorUtils.js';
import { editorInfoForeground, editorInfoBorder, editorWarningForeground, editorWarningBorder } from './editorColors.js';
import { scrollbarSliderBackground, scrollbarSliderHoverBackground, scrollbarSliderActiveBackground } from './miscColors.js';

const minimapFindMatch = registerColor('minimap.findMatchHighlight', { light: '#d18616', dark: '#d18616', hcDark: '#AB5A00', hcLight: '#0F4A85' }, ( localize(2130, 'Minimap marker color for find matches.')), true);
const minimapSelectionOccurrenceHighlight = registerColor('minimap.selectionOccurrenceHighlight', { light: '#c9c9c9', dark: '#676767', hcDark: '#ffffff', hcLight: '#0F4A85' }, ( localize(2131, 'Minimap marker color for repeating editor selections.')), true);
const minimapSelection = registerColor('minimap.selectionHighlight', { light: '#ADD6FF', dark: '#264F78', hcDark: '#ffffff', hcLight: '#0F4A85' }, ( localize(2132, 'Minimap marker color for the editor selection.')), true);
const minimapInfo = registerColor('minimap.infoHighlight', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: editorInfoBorder, hcLight: editorInfoBorder }, ( localize(2133, 'Minimap marker color for infos.')));
const minimapWarning = registerColor('minimap.warningHighlight', { dark: editorWarningForeground, light: editorWarningForeground, hcDark: editorWarningBorder, hcLight: editorWarningBorder }, ( localize(2134, 'Minimap marker color for warnings.')));
const minimapError = registerColor('minimap.errorHighlight', { dark: ( new Color(( new RGBA(255, 18, 18, 0.7)))), light: ( new Color(( new RGBA(255, 18, 18, 0.7)))), hcDark: ( new Color(( new RGBA(255, 50, 50, 1)))), hcLight: '#B5200D' }, ( localize(2135, 'Minimap marker color for errors.')));
const minimapBackground = registerColor('minimap.background', null, ( localize(2136, "Minimap background color.")));
const minimapForegroundOpacity = registerColor('minimap.foregroundOpacity', ( Color.fromHex('#000f')), ( localize(
 2137,
 'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.'
)));
registerColor('minimapSlider.background', ( transparent(scrollbarSliderBackground, 0.5)), ( localize(2138, "Minimap slider background color.")));
registerColor('minimapSlider.hoverBackground', ( transparent(scrollbarSliderHoverBackground, 0.5)), ( localize(2139, "Minimap slider background color when hovering.")));
registerColor('minimapSlider.activeBackground', ( transparent(scrollbarSliderActiveBackground, 0.5)), ( localize(2140, "Minimap slider background color when clicked on.")));

export { minimapBackground, minimapError, minimapFindMatch, minimapForegroundOpacity, minimapInfo, minimapSelection, minimapSelectionOccurrenceHighlight, minimapWarning };
