Skip to content

Commit 17dfdc7

Browse files
committed
fix: added new colors for details view
1 parent 98d6f95 commit 17dfdc7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

plugin/src/main/java/io/snyk/eclipse/plugin/html/BaseHtmlProvider.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ public String replaceCssVariables(String html) {
107107

108108
// Replace CSS variables with actual color values
109109
htmlStyled = htmlStyled.replace("var(--text-color)",
110-
getColorAsHex("org.eclipse.ui.workbench.ACTIVE_TAB_TEXT_COLOR", "#000000"));
110+
getColorAsHex("org.eclipse.ui.workbench.ACTIVE_TAB_SELECTED_TEXT_COLOR", "#000000"));
111+
htmlStyled = htmlStyled.replace("var(--dimmed-text-color)",
112+
getColorAsHex("org.eclipse.ui.workbench.ACTIVE_TAB_TEXT_COLOR", "#4F5456"));
111113

112114
htmlStyled = htmlStyled.replace("var(--ide-background-color)",
113115
getColorAsHex("org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_BG_START", "#FFFFFF"));

plugin/src/main/java/io/snyk/eclipse/plugin/html/CodeHtmlProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public String replaceCssVariables(String html) {
7272
htmlStyled = htmlStyled.replace("var(--disabled-background-color)",
7373
super.getColorAsHex("org.eclipse.ui.workbench.ACTIVE_TAB_OUTER_KEYLINE_COLOR", "#CCCCCC"));
7474
htmlStyled = htmlStyled.replace("var(--vscode-input-border)", super.getColorAsHex("BUTTON_COLOR", "#375578"));
75+
htmlStyled = htmlStyled.replace("var(--warning-text)", super.getColorAsHex("WARNING_TEXT_COLOR", "#000000"));
76+
htmlStyled = htmlStyled.replace("var(--warning-background)", super.getColorAsHex("WARNING_BACKGROUND_COLOR", "#c8a000"));
7577

7678
String htmlWithScripts = replaceAIFixScripts(htmlStyled);
7779

0 commit comments

Comments
 (0)