File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1
- // import {window, ColorThemeKind} from 'vscode'
2
1
import { switcher } from 'rambdax'
3
2
4
- // function isDarkTheme() {
5
- // const currentTheme = window.activeColorTheme.kind
6
- // return currentTheme === ColorThemeKind.Dark
7
- // }
8
3
9
4
export let LIMIT_COMPLEXITY = 12
10
5
let STEP_COMPLEXITY = 12
@@ -20,15 +15,13 @@ const LEVEL2 ={
20
15
21
16
const LEVEL3 = {
22
17
level : LIMIT_COMPLEXITY + STEP_COMPLEXITY * 2 ,
23
- color : "#ff3636 "
18
+ color : "#f816f2 "
24
19
}
25
20
26
- // const colors = isDarkTheme() ? colorsDark : colorsLight
27
-
28
21
export function getColor ( complexity : number ) : string {
29
22
return switcher < string > ( complexity )
30
23
. is ( x => x <= LEVEL1 . level , LEVEL1 . color )
31
24
. is ( x => x <= LEVEL2 . level , LEVEL2 . color )
32
25
. is ( x => x <= LEVEL3 . level , LEVEL3 . color )
33
- . default ( '#f816f2 ' )
26
+ . default ( '#9806a2 ' )
34
27
}
You can’t perform that action at this time.
0 commit comments