Skip to content

Commit

Permalink
Merge branch 'feat/style-description-panel' of github.com:snyk/snyk-e…
Browse files Browse the repository at this point in the history
…clipse-plugin into feat/style-description-panel
  • Loading branch information
ShawkyZ committed Nov 21, 2024
2 parents c1cef9e + eca2756 commit eec417c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public String getColorAsHex(String colorKey, String defaultColor) {
return String.format("#%02x%02x%02x", rgb.red, rgb.green, rgb.blue);
}
}

private ColorRegistry getColorRegistry() {
IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
ITheme currentTheme = themeManager.getCurrentTheme();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static CodeHtmlProvider getInstance() {
}
return instance;
}

@Override
public String getInitScript() {
String themeScript = getThemeScript();
Expand All @@ -42,7 +42,7 @@ function navigateToIssue(e, target) {
if(document.getElementById('position-line')) {
document.getElementById('position-line').onclick = function(e) {
var target = navigatableLines[0];
if(target) {
if(target) {
navigateToIssue(e, target);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ public String replaceCssVariables(String html) {
html = html.replace("var(--container-background-color)", super.getColorAsHex("org.eclipse.ui.workbench.CODE_BACKGROUND_COLOR", "#F0F0F0"));

return html;
}
}
}

0 comments on commit eec417c

Please sign in to comment.