(darkTheme: boolean)
| 21 | } |
| 22 | |
| 23 | function getViewerOptions(darkTheme: boolean) { |
| 24 | const color = getTextcolor(); |
| 25 | const viewerOptions: Partial<SandDanceExplorer.ViewerOptions> = { |
| 26 | colors: { |
| 27 | ...SandDanceExplorer.getColorSettingsFromThemePalette(getThemePalette(darkTheme)), |
| 28 | axisLine: color, |
| 29 | axisText: color, |
| 30 | hoveredCube: color, |
| 31 | }, |
| 32 | }; |
| 33 | return viewerOptions; |
| 34 | } |
| 35 | |
| 36 | function getVscodeThemeClassName() { |
| 37 | const classList = [].slice.apply(document.body.classList) as string[]; |
no test coverage detected