-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core): according to the change of main branch
Signed-off-by: Shuguang Sun <[email protected]>
- Loading branch information
1 parent
6c99adb
commit 8b41cef
Showing
2 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright © 2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import { | ||
ColorThemeKind, | ||
window, | ||
} from "vscode"; | ||
|
||
import { getHtmlStyle } from "../../components/utils/settings"; | ||
|
||
// To change the html style of SASPy | ||
export const saspyGetHtmlStyleValue = (): string => { | ||
const htmlStyleSetting = getHtmlStyle(); | ||
|
||
switch (htmlStyleSetting) { | ||
case "(auto)": | ||
switch (window.activeColorTheme.kind) { | ||
case ColorThemeKind.Light: | ||
return "Illuminate"; | ||
case ColorThemeKind.Dark: | ||
return "Ignite"; | ||
case ColorThemeKind.HighContrast: | ||
return "HighContrast"; | ||
case ColorThemeKind.HighContrastLight: | ||
return "Illuminate"; | ||
default: | ||
return ""; | ||
} | ||
case "(server default)": | ||
return ""; | ||
default: | ||
return htmlStyleSetting; | ||
} | ||
} |