import { Color } from "@vived/core";
import { ThemeColors, ThemeColorType } from "../Entities";
export function getSurfaceColor(appObjects) {
    const theme = ThemeColors.get(appObjects);
    if (theme) {
        return theme.getColorForType(ThemeColorType.surface);
    }
    else {
        appObjects.submitError("getSurfaceColor", "Unable to find ThemeColors");
        return Color.RGB(0, 0, 0);
    }
}
//# sourceMappingURL=getSurfaceColor.js.map