import { asCssValue, buttonForeground, buttonSeparator, buttonBackground, buttonHoverBackground, buttonSecondaryForeground, buttonSecondaryBackground, buttonSecondaryHoverBackground, buttonBorder, progressBarBackground } from '../common/colorRegistry.js';
export const defaultButtonStyles = getButtonStyles({});
export function getButtonStyles(style) {
    return {
        buttonForeground: asCssValue(style.buttonForeground || buttonForeground),
        buttonSeparator: asCssValue(style.buttonSeparator || buttonSeparator),
        buttonBackground: asCssValue(style.buttonBackground || buttonBackground),
        buttonHoverBackground: asCssValue(style.buttonHoverBackground || buttonHoverBackground),
        buttonSecondaryForeground: asCssValue(style.buttonSecondaryForeground || buttonSecondaryForeground),
        buttonSecondaryBackground: asCssValue(style.buttonSecondaryBackground || buttonSecondaryBackground),
        buttonSecondaryHoverBackground: asCssValue(style.buttonSecondaryHoverBackground || buttonSecondaryHoverBackground),
        buttonBorder: asCssValue(style.buttonBorder || buttonBorder),
    };
}
export function getProgressBarStyles(style) {
    return {
        progressBarBackground: asCssValue((style === null || style === void 0 ? void 0 : style.progressBarBackground) || progressBarBackground)
    };
}
