Skip to content

Restore Section title bar background lost after #3808#3946

Open
vogella wants to merge 1 commit intoeclipse-platform:masterfrom
vogella:fix-formheading-flat-bg-3945
Open

Restore Section title bar background lost after #3808#3946
vogella wants to merge 1 commit intoeclipse-platform:masterfrom
vogella:fix-formheading-flat-bg-3945

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 30, 2026

The flat-look optimization in #3808 added an early return in Section.updateHeaderImage whenever the title-bar gradient color matched the title-bar background color. That fired in the common case where the title-bar background is set distinct from the section body (e.g. #eaeaea on a #ffffff body), and the image it skipped was what painted that contrast across the title-bar area, so the title bar visually collapsed into the body.

Tighten the short-circuit to also require bg.equals(getBackground()), so the image is only skipped when title-bar gradient, title-bar background and section body background are all the same color. The optimization is preserved for genuinely flat sections; non-flat title bars get their image back.

Fixes #3945

Section.updateHeaderImage was skipping the title-bar image whenever the
title-bar gradient color matched the title-bar background color. That
condition is too loose: the title-bar background is typically set
distinct from the section body (e.g. #eaeaea on a #ffffff body in the
light theme) and the image was what painted that contrast across the
title-bar area. After the optimization fired, the title bar collapsed
into the section body color and the visual cue was gone.

Tighten the short-circuit to require all three of gradient color,
title-bar background and section body background to be equal before
skipping the image. This preserves the optimization for genuinely flat
sections while restoring the prior look when the title-bar is meant to
contrast with the body.

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

Test Results

   852 files  ±0     852 suites  ±0   53m 56s ⏱️ - 1m 31s
 7 930 tests ±0   7 687 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 292 runs  ±0  19 637 ✅ ±0  655 💤 ±0  0 ❌ ±0 

Results for commit 765dd20. ± Comparison against base commit f2e2f88.

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.

Broken/missing Forms UI header colors

1 participant