MCPcopy Create free account
hub / github.com/microsoft/SandDance / makeSemanticColors

Function makeSemanticColors

docs/app/js/sanddance-app.js:27746–27772  ·  view source on GitHub ↗
(p, e, s, isInverted, depComments)

Source from the content-addressed store, hash-verified

27744 */ parcelHelpers.export(exports, "getSemanticColors", ()=>getSemanticColors);
27745var _tslib = require("tslib");
27746function makeSemanticColors(p, e, s, isInverted, depComments) {
27747 if (depComments === void 0) depComments = false;
27748 var semanticColors = (0, _tslib.__assign)({
27749 primaryButtonBorder: "transparent",
27750 errorText: !isInverted ? "#a4262c" : "#F1707B",
27751 messageText: !isInverted ? "#323130" : "#F3F2F1",
27752 messageLink: !isInverted ? "#005A9E" : "#6CB8F6",
27753 messageLinkHovered: !isInverted ? "#004578" : "#82C7FF",
27754 infoIcon: !isInverted ? "#605e5c" : "#C8C6C4",
27755 errorIcon: !isInverted ? "#A80000" : "#F1707B",
27756 blockingIcon: !isInverted ? "#FDE7E9" : "#442726",
27757 warningIcon: !isInverted ? "#797775" : "#C8C6C4",
27758 severeWarningIcon: !isInverted ? "#D83B01" : "#FCE100",
27759 successIcon: !isInverted ? "#107C10" : "#92C353",
27760 infoBackground: !isInverted ? "#f3f2f1" : "#323130",
27761 errorBackground: !isInverted ? "#FDE7E9" : "#442726",
27762 blockingBackground: !isInverted ? "#FDE7E9" : "#442726",
27763 warningBackground: !isInverted ? "#FFF4CE" : "#433519",
27764 severeWarningBackground: !isInverted ? "#FED9CC" : "#4F2A0F",
27765 successBackground: !isInverted ? "#DFF6DD" : "#393D1B",
27766 // deprecated
27767 warningHighlight: !isInverted ? "#ffb900" : "#fff100",
27768 successText: !isInverted ? "#107C10" : "#92c353"
27769 }, s);
27770 var fullSemanticColors = getSemanticColors(p, e, semanticColors, isInverted);
27771 return _fixDeprecatedSlots(fullSemanticColors, depComments);
27772}
27773function getSemanticColors(p, e, s, isInverted, depComments) {
27774 if (depComments === void 0) depComments = false;
27775 var _a, _b, _c;

Callers

nothing calls this directly

Calls 2

getSemanticColorsFunction · 0.85
_fixDeprecatedSlotsFunction · 0.85

Tested by

no test coverage detected