"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPrimaryColor = getPrimaryColor;
const core_1 = require("@vived/core");
const Entities_1 = require("../Entities");
function getPrimaryColor(appObjects) {
    const theme = Entities_1.ThemeColors.get(appObjects);
    if (theme) {
        return theme.getColorForType(Entities_1.ThemeColorType.primary);
    }
    else {
        appObjects.submitError("getPrimaryColor", "Unable to find ThemeColors");
        return core_1.Color.RGB(0, 0, 0);
    }
}
//# sourceMappingURL=getPrimaryColor.js.map