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