MCPcopy
hub / github.com/microsoft/SandDance / getViewerOptions

Function getViewerOptions

extensions/common-frontend/src/app.tsx:23–34  ·  view source on GitHub ↗
(darkTheme: boolean)

Source from the content-addressed store, hash-verified

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[];

Callers 2

constructorMethod · 0.70
checkForDarkThemeMethod · 0.70

Calls 2

getTextcolorFunction · 0.85
getThemePaletteFunction · 0.70

Tested by

no test coverage detected