Skip to content

fix: button colors + invisible cursor#352

Merged
nick-y-snyk merged 2 commits intomainfrom
fix/IDE-1657
Jan 14, 2026
Merged

fix: button colors + invisible cursor#352
nick-y-snyk merged 2 commits intomainfrom
fix/IDE-1657

Conversation

@nick-y-snyk
Copy link
Copy Markdown
Contributor

Description

Provide description of this PR and changes, if linked Jira ticket doesn't cover it in full.

Checklist

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

@nick-y-snyk nick-y-snyk requested review from a team as code owners January 12, 2026 11:32
@snyk-io
Copy link
Copy Markdown

snyk-io bot commented Jan 12, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

b = Math.min(255, Math.max(0, (int)(b * factor)));

return String.format("#%02x%02x%02x", r, g, b);
} catch (Exception e) {

Check warning

Code scanning / PMD

Avoid catching Exception in try-catch block

Avoid catching Exception in try-catch block
@nick-y-snyk nick-y-snyk force-pushed the fix/IDE-1657 branch 2 times, most recently from 48d770c to e498986 Compare January 12, 2026 11:39
Copy link
Copy Markdown
Contributor

@rrama rrama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@acke Please verify SWT.WEBKIT is safe to use.
Other than that, LGTM, other than the couple of lines that should be reverted.

container.setLayout(new FillLayout());

browser = new Browser(container, SWT.NONE);
browser = new Browser(container, SWT.WEBKIT);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not knowledgeable in this area, so cannot review, please ask @acke.

Copy link
Copy Markdown
Contributor

@acke acke Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nick-y-snyk Did you run the new setttings on Eclipse in Windows?
If you run into problems when you do, you might want to use EDGE in Windows. SWT.EDGE is used in SnykToolView.java (lines 83, 109) and falls back to SWT.NONE on non-Windows.

WebKit is not recommended on Windows, WebKit support was removed in SWT 4.10+.

Either stick to using EDGE, or add something like this to handle Windows correctly.

int browserStyle;
if (Platform.getOS().equals(Platform.OS_WIN32)) {
    browserStyle = SWT.EDGE;  // Use Edge WebView2 on Windows
} else {
    browserStyle = SWT.WEBKIT;  // Use WebKit on macOS/Linux
}
browser = new Browser(container, browserStyle);

Comment thread plugin/src/main/java/io/snyk/eclipse/plugin/html/BaseHtmlProvider.java Outdated
@nick-y-snyk nick-y-snyk changed the title fix: button colors + double cursor fix: button colors + invisible cursor Jan 13, 2026
@nick-y-snyk nick-y-snyk merged commit d87265e into main Jan 14, 2026
10 checks passed
@nick-y-snyk nick-y-snyk deleted the fix/IDE-1657 branch January 14, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants