MCPcopy Index your code
hub / github.com/banga/git-split-diffs / parseColorDefinition

Function parseColorDefinition

src/themes.ts:152–160  ·  view source on GitHub ↗
(definition: ColorDefinition)

Source from the content-addressed store, hash-verified

150};
151
152export function parseColorDefinition(definition: ColorDefinition): ThemeColor {
153 return {
154 color: definition.color ? hexToRgba(definition.color) : undefined,
155 backgroundColor: definition.backgroundColor
156 ? hexToRgba(definition.backgroundColor)
157 : undefined,
158 modifiers: definition.modifiers,
159 };
160}
161
162function loadThemeDefinition(
163 themesDir: string,

Callers 2

parseShikiColorFunction · 0.90
loadThemeFunction · 0.85

Calls 1

hexToRgbaFunction · 0.85

Tested by

no test coverage detected