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