Skip to content

Commit c2c190b

Browse files
committed
chore@small
1 parent 1e74aca commit c2c190b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/editordecoration/get-color.ts

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
// import {window, ColorThemeKind} from 'vscode'
21
import { switcher } from 'rambdax'
32

4-
// function isDarkTheme() {
5-
// const currentTheme = window.activeColorTheme.kind
6-
// return currentTheme === ColorThemeKind.Dark
7-
// }
83

94
export let LIMIT_COMPLEXITY = 12
105
let STEP_COMPLEXITY = 12
@@ -20,15 +15,13 @@ const LEVEL2 ={
2015

2116
const LEVEL3 = {
2217
level: LIMIT_COMPLEXITY + STEP_COMPLEXITY * 2,
23-
color: "#ff3636"
18+
color: "#f816f2"
2419
}
2520

26-
// const colors = isDarkTheme() ? colorsDark : colorsLight
27-
2821
export 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
}

0 commit comments

Comments
 (0)