File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1- // import {window, ColorThemeKind} from 'vscode'
21import { switcher } from 'rambdax'
32
4- // function isDarkTheme() {
5- // const currentTheme = window.activeColorTheme.kind
6- // return currentTheme === ColorThemeKind.Dark
7- // }
83
94export let LIMIT_COMPLEXITY = 12
105let STEP_COMPLEXITY = 12
@@ -20,15 +15,13 @@ const LEVEL2 ={
2015
2116const LEVEL3 = {
2217 level : LIMIT_COMPLEXITY + STEP_COMPLEXITY * 2 ,
23- color : "#ff3636 "
18+ color : "#f816f2 "
2419}
2520
26- // const colors = isDarkTheme() ? colorsDark : colorsLight
27-
2821export function getColor ( complexity : number ) : string {
2922 return switcher < string > ( complexity )
3023 . is ( x => x <= LEVEL1 . level , LEVEL1 . color )
3124 . is ( x => x <= LEVEL2 . level , LEVEL2 . color )
3225 . is ( x => x <= LEVEL3 . level , LEVEL3 . color )
33- . default ( '#f816f2 ' )
26+ . default ( '#9806a2 ' )
3427}
You can’t perform that action at this time.
0 commit comments