kisstkondoros / codemetrics

VSCode extension which shows the complexity information for TypeScript class members
Other
404 stars 20 forks source link

Is there any support for custom colors #54

Closed cris7ea closed 6 years ago

cris7ea commented 6 years ago

Great work!

Question: Is there any way to customize colors?

Why: I would like to distinguish between linting errors and complexity problems. Right now they have the same colors and it's hard to make the difference right away.

Example API:

{
  "codemetrics.colors.high": "#FF2D00", // red
  "codemetrics.colors.med": "#FFB900", // orange
  "codemetrics.colors.low": "#F3FF00" // yellow
}

Where to add custom colors?: Add custom colors

kisstkondoros commented 6 years ago

Version 1.14.0 was just published which contains the requested feature. Example configuration:

    "codemetrics.basics.ComplexityColorLow": "#333",
    "codemetrics.basics.ComplexityColorNormal": "#666",
    "codemetrics.basics.ComplexityColorHigh": "#999",
    "codemetrics.basics.ComplexityColorExtreme": "#CCC",
cris7ea commented 6 years ago

Thank you!