Skip to content

Match SourceViewer canvas background to text widget#3965

Draft
vogella wants to merge 1 commit intoeclipse-platform:masterfrom
vogella:issue-3964-sourceviewer-gap-bg
Draft

Match SourceViewer canvas background to text widget#3965
vogella wants to merge 1 commit intoeclipse-platform:masterfrom
vogella:issue-3964-sourceviewer-gap-bg

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented May 4, 2026

On dark editor themes a bright 1px vertical strip appears between the line numbers and the source code. The strip is the gap that RulerLayout leaves between the vertical ruler and the text widget; it exposes the parent Canvas of SourceViewer, whose background was never themed.

This change tracks the StyledText background and applies it to the canvas so the gap blends into the editor color scheme, and re-syncs on text widget paint events so preference-driven background changes propagate.

Fixes #3964

The 1px gap between the vertical ruler and the text widget is rendered
by RulerLayout against the parent canvas, which kept its system default
background. On dark editor themes this surfaced as a bright vertical
strip between the line numbers and the source.

Track the StyledText background and apply it to the canvas, so the gap
blends into the editor color scheme. Re-syncs on text widget paint
events so preference-driven background changes propagate.

Fixes eclipse-platform#3964
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Test Results

   852 files  ±0     852 suites  ±0   52m 40s ⏱️ - 5m 18s
 7 940 tests ±0   7 697 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 322 runs  ±0  19 667 ✅ ±0  655 💤 ±0  0 ❌ ±0 

Results for commit 0faf690. ± Comparison against base commit 4888468.

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.

The gap between the line numbers and code does not adapt to the configured source editor background colour

1 participant