Skip to content

Draw the ColorCellEditor swatch with an ImageGcDrawer - #4375

Draft
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:lv/color-cell-editor-swatch
Draft

vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:lv/color-cell-editor-swatch

Conversation

@vogella

@vogella vogella commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

ColorCellEditor built its swatch as a 4-bit ImageData pixel by pixel, so on HiDPI displays SWT has to scale it up from 100 percent.
It now draws the fill and the border with an ImageGcDrawer, so the swatch is rendered at the actual zoom and the code gets shorter.
The minimum org.eclipse.swt version moves to 3.130 for ImageGcDrawer.getGcStyle.
On Linux GTK at 200 percent the swatch is pixel identical before and after, since that upscale is exact; the difference shows at fractional zoom levels.
Windows screenshots will be added in the next days.

The swatch was a 4-bit ImageData filled pixel by pixel, so on HiDPI
displays SWT scales it up from 100 percent.

Draw the fill and the 1 point border with a GC instead, so the swatch
is rendered at the actual zoom. This needs SWT 3.130.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   861 files  ±0     861 suites  ±0   46m 20s ⏱️ - 6m 26s
 8 332 tests ±0   8 088 ✅  - 1  243 💤 ±0  1 ❌ +1 
20 865 runs  ±0  20 194 ✅  - 1  670 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 822d421. ± Comparison against base commit 076a5b2.

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.

1 participant