"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.overrideMonacoColorToken = exports.overrideColorToken = void 0;
const tslib_1 = require("tslib");
const ide_theme_1 = require("@opensumi/ide-theme");
const default_theme_1 = tslib_1.__importDefault(require("./default-theme"));
const light_theme_1 = tslib_1.__importDefault(require("./light-theme"));
const overrideColorToken = () => {
    const colorRegistry = (0, ide_theme_1.getColorRegistry)();
    colorRegistry.getColors().forEach(({ id }) => {
        if (default_theme_1.default.colors[id] && light_theme_1.default.colors[id]) {
            const preColor = colorRegistry.getColor(id);
            (0, ide_theme_1.registerColor)(id, {
                dark: default_theme_1.default.colors[id],
                light: light_theme_1.default.colors[id],
                hcDark: preColor.defaults.hcDark || null,
                hcLight: preColor.defaults.hcLight || null,
            }, preColor.description);
        }
    });
};
exports.overrideColorToken = overrideColorToken;
const overrideMonacoColorToken = () => {
    /**
     * quickInputListFocusBackground token
     */
    (0, ide_theme_1.registerColor)('vscode.quickInputList.focusBackground', { light: '#151b2114', dark: '#5F656B40', hcDark: null, hcLight: null }, 'Quick picker background color for the focused item.');
    /**
     * quickInputListFocusForeground token
     */
    (0, ide_theme_1.registerColor)('quickInputList.focusForeground', { dark: '#ffffff', light: '#151b21', hcDark: null, hcLight: null }, 'Quick picker foreground color for the focused item.');
};
exports.overrideMonacoColorToken = overrideMonacoColorToken;
//# sourceMappingURL=override.token.js.map